wok view libnl/receipt @ rev 24231

updated perl-json-pp (4.04 -> 4.07)
author Hans-G?nter Theisgen
date Sun Jan 02 06:50:51 2022 +0100 (2022-01-02)
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 }