wok-current annotate libnetfilter_cttimeout/receipt @ rev 24427

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 12 11:42:56 2022 +0000 (2022-02-12)
parents 8ceab72d5816
children cb67b4f8be05
rev   line source
pascal@17285 1 # SliTaz package receipt.
pascal@17285 2
pascal@17285 3 PACKAGE="libnetfilter_cttimeout"
pascal@17285 4 VERSION="1.0.0"
pascal@17285 5 CATEGORY="network"
pascal@17285 6 SHORT_DESC="API to the fine-grain connection tracking timeout infrastructure."
pascal@17285 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17285 8 LICENSE="GPL2"
pascal@17285 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@17285 10 WEB_SITE="http://www.netfilter.org/projects/$PACKAGE/"
pascal@17285 11 WGET_URL="${WEB_SITE}files/$TARBALL"
pascal@17285 12
pascal@17285 13 DEPENDS="libmnl"
pascal@17285 14 BUILD_DEPENDS="pkg-config glib-dev libmnl-dev"
pascal@17285 15
pascal@24427 16 # What is the latest version available today?
pascal@24427 17 current_version()
pascal@24427 18 {
pascal@24427 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24427 20 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24427 21 }
pascal@24427 22
pascal@17285 23 # Rules to configure and make the package.
pascal@17285 24 compile_rules()
pascal@17285 25 {
pascal@17285 26 ./configure --prefix=/usr $CONFIGURE_ARGS &&
pascal@17285 27 make &&
pascal@17285 28 make DESTDIR=$DESTDIR install
pascal@17285 29 }
pascal@17285 30
pascal@17285 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17285 32 genpkg_rules()
pascal@17285 33 {
pascal@17285 34 mkdir -p $fs/usr/lib
pascal@17285 35 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@17285 36 }