wok annotate rfkill/receipt @ rev 25074

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