wok view gnet/receipt @ rev 24742

updated libffcall (2.2 -> 2.4)
author Hans-G?nter Theisgen
date Wed Mar 16 10:31:26 2022 +0100 (2022-03-16)
parents 63cdeb5a1e77
children
line source
1 # SliTaz package receipt.
3 PACKAGE="gnet"
4 VERSION="2.0.8"
5 CATEGORY="network"
6 SHORT_DESC="GNet is a simple network library."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://wiki.gnome.org/Projects/GNetLibrary"
11 WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/gnet/${VERSION%.*}/$TARBALL"
13 DEPENDS="glib"
14 BUILD_DEPENDS="glib-dev util-linux-uuid-dev"
16 current_version()
17 {
18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
19 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i '/define _tcase_add_test/d' tests/check/gnetcheck.h
26 sed -i 's/boolean.*_gnet_check_run_test_func.*/&\n#define _tcase_add_test __gnet_tcase_add_test/' tests/check/gnetcheck.h
27 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lXt"
29 ./configure \
30 --prefix=/usr \
31 --infodir=/usr/share/info \
32 --mandir=/usr/share/man \
33 $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 }