wok annotate gnet/receipt @ rev 25028

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