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