wok annotate libnl/receipt @ rev 25603
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 18 11:43:32 2023 +0000 (10 months ago) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
pascal@1110 | 1 # SliTaz package receipt. |
pascal@1110 | 2 |
pascal@1110 | 3 PACKAGE="libnl" |
Hans-G?nter@23090 | 4 VERSION="3.5.0" |
pascal@1110 | 5 CATEGORY="network" |
pascal@1110 | 6 SHORT_DESC="netlink library." |
pascal@1110 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14714 | 8 LICENSE="LGPL2.1" |
Hans-G?nter@21266 | 9 |
Hans-G?nter@23090 | 10 WEB_SITE="https://www.infradead.org/~tgr/libnl/" |
Hans-G?nter@21266 | 11 |
pascal@1110 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1110 | 13 WGET_URL="$WEB_SITE/files/$TARBALL" |
Hans-G?nter@23090 | 14 WGET_URL="https://github.com/thom311/$PACKAGE/releases/download/${PACKAGE}${VERSION//./_}/$TARBALL" |
Hans-G?nter@21266 | 15 |
pankso@16027 | 16 HOST_ARCH="i486 arm" |
pascal@1110 | 17 |
pankso@16027 | 18 # Cross compile needs host flex |
pascal@13463 | 19 BUILD_DEPENDS="flex" |
pascal@13463 | 20 |
pascal@25603 | 21 # What is the latest version available today? |
pascal@24055 | 22 current_version() |
pascal@24055 | 23 { |
pascal@24055 | 24 wget -O - ${WGET_URL%/down*} 2>/dev/null | \ |
pascal@25603 | 25 sed '/tag\//!d;s|.*tag/[a-z_]*||;s|".*||;s|_|.|g;q' |
pascal@24055 | 26 } |
pascal@24055 | 27 |
pascal@1110 | 28 # Rules to configure and make the package. |
pascal@1110 | 29 compile_rules() |
pascal@1110 | 30 { |
Hans-G?nter@21266 | 31 ./configure \ |
Hans-G?nter@21266 | 32 --sysconfdir=/etc \ |
pankso@16395 | 33 $CONFIGURE_ARGS && |
Hans-G?nter@21266 | 34 make -j 1 && |
Hans-G?nter@21266 | 35 make install |
pascal@1110 | 36 } |
pascal@1110 | 37 |
pascal@1110 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1110 | 39 genpkg_rules() |
pascal@1110 | 40 { |
pankso@15894 | 41 mkdir -p $fs/usr/lib |
Hans-G?nter@21266 | 42 |
Hans-G?nter@21266 | 43 cp -a $install/etc $fs |
Hans-G?nter@21266 | 44 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@21266 | 45 cp -a $install/usr/lib/libnl $fs/usr/lib |
Hans-G?nter@21266 | 46 |
pankso@16417 | 47 find $fs/usr/lib -type f -name "*.*a" -exec rm -f {} \; |
pascal@1110 | 48 } |