wok-current annotate libunique/receipt @ rev 24366
created recipe for geany-lang-1.23.1
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 05 07:22:28 2022 +0100 (2022-02-05) |
parents | eeba7ab1dffe |
children | 3ad63c8fc2f9 |
rev | line source |
---|---|
erjo@4760 | 1 # SliTaz package receipt. |
erjo@4760 | 2 |
erjo@4760 | 3 PACKAGE="libunique" |
slaxemulator@6288 | 4 VERSION="1.1.6" |
erjo@4760 | 5 CATEGORY="development" |
erjo@4760 | 6 SHORT_DESC="Library for writing single instance application." |
erjo@4760 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@14718 | 8 LICENSE="LGPL2.1" |
slaxemulator@7089 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@20674 | 10 WEB_SITE="https://wiki.gnome.org/Attic/LibUnique" |
slaxemulator@7089 | 11 WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/$PACKAGE/${VERSION%.*}/$TARBALL" |
pankso@16379 | 12 HOST_ARCH="i486 arm" |
erjo@4760 | 13 |
pankso@16379 | 14 DEPENDS="cairo gtk+" |
pankso@16379 | 15 BUILD_DEPENDS="cairo-dev gtk+-dev glib-dev expat-dev" |
pankso@16271 | 16 |
pankso@16271 | 17 case "$ARCH" in |
pankso@16379 | 18 i?86) |
pankso@16379 | 19 BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev perl" |
pascal@16285 | 20 export CFLAGS="$CFLAGS -Wno-error=unused-but-set-variable" |
pankso@16271 | 21 esac |
pascal@14718 | 22 |
pascal@24072 | 23 current_version() |
pascal@24072 | 24 { |
pascal@24072 | 25 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24072 | 26 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24072 | 27 } |
pascal@24072 | 28 |
erjo@4760 | 29 # Rules to configure and make the package. |
erjo@4760 | 30 compile_rules() |
erjo@4760 | 31 { |
pankso@16379 | 32 patch -Np1 -i $stuff/remove_G_CONST_RETURN.patch || return 1 |
erjo@4760 | 33 ./configure \ |
pankso@16379 | 34 --disable-dbus \ |
erjo@4760 | 35 $CONFIGURE_ARGS && |
pankso@16271 | 36 make && make install |
erjo@4760 | 37 } |
erjo@4760 | 38 |
erjo@4760 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@4760 | 40 genpkg_rules() |
erjo@4760 | 41 { |
erjo@4760 | 42 mkdir -p $fs/usr/lib |
pascal@14718 | 43 cp -a $install/usr/lib/*.so* $fs/usr/lib |
erjo@4760 | 44 } |
erjo@4760 | 45 |