wok-6.x annotate libnetfilter_cthelper/receipt @ rev 25445

itaka: fix wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 06 07:38:52 2022 +0000 (2022-09-06)
parents 83b97236db32
children
rev   line source
pascal@17286 1 # SliTaz package receipt.
pascal@17286 2
pascal@17286 3 PACKAGE="libnetfilter_cthelper"
pascal@17286 4 VERSION="1.0.0"
pascal@17286 5 CATEGORY="network"
pascal@17286 6 SHORT_DESC="API to the user-space helper infrastructure."
pascal@17286 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17286 8 LICENSE="GPL2"
pascal@17286 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@24746 10 WEB_SITE="https://www.netfilter.org/projects/$PACKAGE/"
pascal@17286 11 WGET_URL="${WEB_SITE}files/$TARBALL"
pascal@17286 12
pascal@17286 13 DEPENDS="libmnl"
pascal@17286 14 BUILD_DEPENDS="pkg-config glib-dev libmnl-dev"
pascal@17286 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@17286 23 # Rules to configure and make the package.
pascal@17286 24 compile_rules()
pascal@17286 25 {
pascal@17286 26 ./configure --prefix=/usr $CONFIGURE_ARGS &&
pascal@17286 27 make &&
pascal@17286 28 make DESTDIR=$DESTDIR install
pascal@17286 29 }
pascal@17286 30
pascal@17286 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17286 32 genpkg_rules()
pascal@17286 33 {
pascal@17286 34 mkdir -p $fs/usr/lib
pascal@17286 35 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@17286 36 }