wok-current view libunique/receipt @ rev 25701

Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author Stanislas Leduc <shann@slitaz.org>
date Fri Apr 19 12:48:51 2024 +0000 (2 months ago)
parents 5d79829fa876
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libunique"
4 VERSION="1.1.6"
5 CATEGORY="development"
6 SHORT_DESC="Library for writing single instance application."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://wiki.gnome.org/Attic/LibUnique"
11 WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="cairo gtk+"
15 BUILD_DEPENDS="cairo-dev gtk+-dev glib-dev expat-dev"
17 case "$ARCH" in
18 i?86)
19 BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev perl"
20 export CFLAGS="$CFLAGS -Wno-error=unused-but-set-variable"
21 esac
23 current_version()
24 {
25 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
26 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 patch -Np1 -i $stuff/remove_G_CONST_RETURN.patch || return 1
33 patch -Np1 < $stuff/libunique-1.1.6-upstream_fixes-1.patch
35 # Deal with old feature
36 sed -i '/DG_DISABLE_DEPRECATED/d' unique/Makefile.in
37 # Disable warnings as error, old app
38 export CFLAGS="$CFLAGS -Wno-error"
40 ./configure \
41 --disable-werror \
42 --disable-dbus \
43 $CONFIGURE_ARGS &&
44 make && make install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/lib
51 cp -a $install/usr/lib/*.so* $fs/usr/lib
52 }