wok-current view rfkill/receipt @ rev 25338
updated svkbd packages ( -> 0.4.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jul 24 10:22:05 2022 +0100 (2022-07-24) |
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 }