wok annotate libnl1/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 8dd8bab3f0ca
children
rev   line source
pascal@14712 1 # SliTaz package receipt.
pascal@14712 2
pascal@14712 3 PACKAGE="libnl1"
pascal@14712 4 VERSION="1.1.4"
pascal@14712 5 SOURCE="libnl"
pascal@14712 6 CATEGORY="network"
pascal@14712 7 SHORT_DESC="netlink library."
pascal@14712 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14714 9 LICENSE="LGPL2.1"
pascal@14712 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@20672 11 WEB_SITE="http://www.infradead.org/~tgr/libnl/"
pascal@14712 12 WGET_URL="$WEB_SITE/files/$TARBALL"
pascal@14712 13
pascal@14712 14 BUILD_DEPENDS="flex"
pascal@14712 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 "/$SOURCE-[0-9]/!d;/-rc/d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24427 21 }
pascal@24427 22
pascal@14712 23 # Rules to configure and make the package.
pascal@14712 24 compile_rules()
pascal@14712 25 {
pascal@14712 26 cd $src
pascal@14712 27 ./configure && make && make install
pascal@14712 28 }
pascal@14712 29
pascal@14712 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14712 31 genpkg_rules()
pascal@14712 32 {
pascal@14712 33 mkdir -p $fs/usr
pascal@14712 34 cp -a $install/usr/lib $fs/usr
pascal@14712 35 }