wok annotate libnl/receipt @ rev 25103
Use archive.org for some broken wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 21 20:15:18 2022 +0000 (2022-06-21) |
parents | 98cf458f5c62 |
children | 5db546345599 |
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@24055 | 21 current_version() |
pascal@24055 | 22 { |
pascal@24055 | 23 wget -O - ${WGET_URL%/down*} 2>/dev/null | \ |
pascal@24055 | 24 sed '/archive.*tar/!d;s|.*/libnl\(.*\).tar.*|\1|;s|_|.|g;q' |
pascal@24055 | 25 } |
pascal@24055 | 26 |
pascal@1110 | 27 # Rules to configure and make the package. |
pascal@1110 | 28 compile_rules() |
pascal@1110 | 29 { |
Hans-G?nter@21266 | 30 ./configure \ |
Hans-G?nter@21266 | 31 --sysconfdir=/etc \ |
pankso@16395 | 32 $CONFIGURE_ARGS && |
Hans-G?nter@21266 | 33 make -j 1 && |
Hans-G?nter@21266 | 34 make install |
pascal@1110 | 35 } |
pascal@1110 | 36 |
pascal@1110 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1110 | 38 genpkg_rules() |
pascal@1110 | 39 { |
pankso@15894 | 40 mkdir -p $fs/usr/lib |
Hans-G?nter@21266 | 41 |
Hans-G?nter@21266 | 42 cp -a $install/etc $fs |
Hans-G?nter@21266 | 43 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@21266 | 44 cp -a $install/usr/lib/libnl $fs/usr/lib |
Hans-G?nter@21266 | 45 |
pankso@16417 | 46 find $fs/usr/lib -type f -name "*.*a" -exec rm -f {} \; |
pascal@1110 | 47 } |