wok view rfkill/receipt @ rev 25632

Up gtklife (5.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 23 14:06:29 2023 +0000 (11 months ago)
parents 71360a13cd94
children
line source
1 # SliTaz package receipt.
3 PACKAGE="rfkill"
4 VERSION="1.0"
5 CATEGORY="system-tools"
6 TAGS="kernel"
7 SHORT_DESC="Utility to query the state of the rfkill switches."
8 MAINTAINER="slaxemulator@gmail.com"
9 LICENSE="MIT"
10 WEB_SITE="https://wireless.wiki.kernel.org/en/users/Documentation/rfkill"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://www.kernel.org/pub/software/network/rfkill/$TARBALL"
15 BUILD_DEPENDS=""
17 HOST_ARCH="i486 arm"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i -e 's/BINDIR) rfkill/BINDIR)/' \
30 -e 's|-m 755 -t|-m 755 rfkill|' \
31 -e 's|man8/ rfkill\.8\.gz|man8/|' \
32 -e 's|-m 644 -t|-m 644 rfkill.8.gz|' Makefile
33 make &&
34 make install DESTDIR=$DESTDIR
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cook_copy_folders sbin
41 }