wok-6.x annotate libnet/receipt @ rev 24411

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 09 17:57:59 2022 +0000 (2022-02-09)
parents 86790a278e70
children 91df889f52fe
rev   line source
slaxemulator@7179 1 # SliTaz package receipt.
slaxemulator@7179 2
slaxemulator@7179 3 PACKAGE="libnet"
samuel_trassare@14140 4 VERSION="1.1.6"
slaxemulator@7179 5 CATEGORY="network"
slaxemulator@7179 6 SHORT_DESC="A library which provides API for commonly used low-level net functions."
slaxemulator@7179 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15482 8 LICENSE="BSD"
slaxemulator@7179 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20421 10 WEB_SITE="https://sourceforge.net/projects/libnet-dev/"
slaxemulator@7179 11 WGET_URL="$SF_MIRROR/$PACKAGE-dev/$TARBALL"
slaxemulator@7179 12
pascal@24411 13 # What is the latest version available today?
pascal@24411 14 current_version()
pascal@24411 15 {
pascal@24411 16 wget -O - https://sourceforge.net/projects/libnet-dev/files/ 2>/dev/null | \
pascal@24411 17 sed '/scope="row/!d;s|.*/libnet-||;s|.tar.*||;q'
pascal@24411 18 }
pascal@24411 19
slaxemulator@7179 20 # Rules to configure and make the package.
slaxemulator@7179 21 compile_rules()
slaxemulator@7179 22 {
slaxemulator@7179 23 ./configure \
slaxemulator@7179 24 --prefix=/usr \
slaxemulator@7179 25 --infodir=/usr/share/info \
slaxemulator@7179 26 --mandir=/usr/share/man \
slaxemulator@7179 27 $CONFIGURE_ARGS &&
samuel_trassare@14140 28 make && make DESTDIR=$DESTDIR install
slaxemulator@7179 29 }
slaxemulator@7179 30
slaxemulator@7179 31 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7179 32 genpkg_rules()
slaxemulator@7179 33 {
slaxemulator@7179 34 mkdir -p $fs/usr/lib
samuel_trassare@14140 35 cp -a $install/usr/lib/*.so* $fs/usr/lib
slaxemulator@7179 36 }
slaxemulator@7179 37