wok view 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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libnl"
4 VERSION="3.5.0"
5 CATEGORY="network"
6 SHORT_DESC="netlink library."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL2.1"
10 WEB_SITE="https://www.infradead.org/~tgr/libnl/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE/files/$TARBALL"
14 WGET_URL="https://github.com/thom311/$PACKAGE/releases/download/${PACKAGE}${VERSION//./_}/$TARBALL"
16 HOST_ARCH="i486 arm"
18 # Cross compile needs host flex
19 BUILD_DEPENDS="flex"
21 current_version()
22 {
23 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/libnl\(.*\).tar.*|\1|;s|_|.|g;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --sysconfdir=/etc \
32 $CONFIGURE_ARGS &&
33 make -j 1 &&
34 make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib
42 cp -a $install/etc $fs
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 cp -a $install/usr/lib/libnl $fs/usr/lib
46 find $fs/usr/lib -type f -name "*.*a" -exec rm -f {} \;
47 }