wok view libnl/receipt @ rev 25686

Use System category for pm-suspend entry
author Stanislas Leduc <shann@slitaz.org>
date Sat Apr 06 12:03:22 2024 +0200 (7 months ago)
parents 5ea0ce1cecc0
children
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 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
25 sed '/tag\//!d;s|.*tag/[a-z_]*||;s|".*||;s|_|.|g;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure \
32 --sysconfdir=/etc \
33 $CONFIGURE_ARGS &&
34 make -j 1 &&
35 make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib
43 cp -a $install/etc $fs
44 cp -a $install/usr/lib/*.so* $fs/usr/lib
45 cp -a $install/usr/lib/libnl $fs/usr/lib
47 find $fs/usr/lib -type f -name "*.*a" -exec rm -f {} \;
48 }