wok view rfkill/receipt @ rev 24475
updated dfu-util (0.9 -> 0.11)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 17 17:41:58 2022 +0100 (2022-02-17) |
parents | 6135577f4d08 |
children | e8c82c47df01 |
line source
1 # SliTaz package receipt.
3 PACKAGE="rfkill"
4 VERSION="0.5"
5 CATEGORY="system-tools"
6 SHORT_DESC="Utility to query the state of the rfkill switches"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="https://wireless.wiki.kernel.org/en/users/Documentation/rfkill"
11 WGET_URL="https://www.kernel.org/pub/software/network/rfkill/$TARBALL"
12 TAGS="kernel"
13 HOST_ARCH="i486 arm"
15 BUILD_DEPENDS="wget"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's/BINDIR) rfkill/BINDIR)/' Makefile
28 sed -i 's/-m 755 -t/-m 755 rfkill/' Makefile
29 sed -i 's/man8\/ rfkill\.8\.gz/man8\//' Makefile
30 sed -i 's/-m 644 -t/-m 644 rfkill.8.gz/' Makefile
31 make && make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
38 cp -a $install/usr/sbin $fs/usr
39 }