# SliTaz package receipt. PACKAGE="gnet" VERSION="2.0.8" CATEGORY="network" SHORT_DESC="GNet is a simple network library." MAINTAINER="pankso@slitaz.org" LICENSE="LGPL" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="https://wiki.gnome.org/Projects/GNetLibrary" WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/gnet/${VERSION%.*}/$TARBALL" DEPENDS="glib" BUILD_DEPENDS="glib-dev util-linux-uuid-dev" current_version() { wget -O - $(dirname $WGET_URL) 2>/dev/null | \ sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { sed -i '/define _tcase_add_test/d' tests/check/gnetcheck.h sed -i 's/boolean.*_gnet_check_run_test_func.*/&\n#define _tcase_add_test __gnet_tcase_add_test/' tests/check/gnetcheck.h # Binutils 2.22 break many packages build without LDFLAGS set correctly. export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lXt" ./configure \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/lib/*.so* $fs/usr/lib }