wok annotate dbus-glib/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | 916ebbb03a03 |
children |
rev | line source |
---|---|
pankso@791 | 1 # SliTaz package receipt. |
pankso@791 | 2 |
pankso@791 | 3 PACKAGE="dbus-glib" |
Hans-G?nter@22634 | 4 VERSION="0.110" |
pankso@791 | 5 CATEGORY="x-window" |
pankso@791 | 6 SHORT_DESC="D-Bus glib binding." |
pankso@791 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
Hans-G?nter@22634 | 9 WEB_SITE="https://freedesktop.org/wiki/Software/DBusBindings/" |
Hans-G?nter@22634 | 10 |
pankso@791 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22634 | 12 WGET_URL="https://dbus.freedesktop.org/releases/dbus-glib/$TARBALL" |
Hans-G?nter@22634 | 13 |
Hans-G?nter@22634 | 14 DEPENDS="dbus expat libgio" |
Hans-G?nter@22634 | 15 BUILD_DEPENDS="dbus-dev expat-dev gettext glib-dev libgio-dev pkg-config" |
Hans-G?nter@22634 | 16 |
pankso@16129 | 17 HOST_ARCH="i486 arm" |
pankso@10360 | 18 |
pankso@16129 | 19 # Handle cross compilation. Host pkg-config/gettext are used |
pankso@16129 | 20 case "$ARCH" in |
pankso@16129 | 21 arm*) |
Hans-G?nter@22634 | 22 BUILD_DEPENDS="dbus-dev expat-dev glib-dev libgio-dev" |
pankso@16129 | 23 export ac_cv_have_abstract_sockets=${ac_cv_have_abstract_sockets=yes} ;; |
pankso@16129 | 24 esac |
pankso@791 | 25 |
pascal@24076 | 26 current_version() |
pascal@24076 | 27 { |
pascal@24076 | 28 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24076 | 29 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24076 | 30 } |
pascal@24076 | 31 |
pankso@791 | 32 # Rules to configure and make the package. |
pankso@791 | 33 compile_rules() |
pankso@791 | 34 { |
pankso@16129 | 35 ./configure $CONFIGURE_ARGS && |
pankso@16129 | 36 case "$ARCH" in |
pankso@16129 | 37 arm) |
pankso@16129 | 38 patch -p1 < $stuff/dbus-glib.patch && |
pankso@16129 | 39 patch -p0 < $stuff/dbus.patch ;; |
pankso@16129 | 40 esac && |
Hans-G?nter@22634 | 41 make && |
Hans-G?nter@22634 | 42 make install |
pankso@791 | 43 } |
pankso@791 | 44 |
pankso@791 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@791 | 46 genpkg_rules() |
pankso@791 | 47 { |
pankso@791 | 48 mkdir -p $fs/usr/lib |
Hans-G?nter@22634 | 49 |
Hans-G?nter@22634 | 50 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22634 | 51 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@791 | 52 } |