wok-current view wireless_tools/receipt @ rev 24395
created recipe for py3k-distutils-extra
author | Hans-G?nter Theisgen |
---|---|
date | Tue Feb 08 10:23:22 2022 +0100 (2022-02-08) |
parents | 6135577f4d08 |
children | 1805f71c5d9f |
line source
1 # SliTaz package receipt.
3 PACKAGE="wireless_tools"
4 VERSION="29"
5 CATEGORY="system-tools"
6 SHORT_DESC="Wireless Tools for Linux"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 SUGGESTED="linux-wireless"
10 TARBALL="${PACKAGE}.${VERSION}.tar.gz"
11 WEB_SITE="https://hewlettpackard.github.io/wireless-tools/Tools.html"
12 WGET_URL="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/$TARBALL"
13 HOST_ARCH="i486 arm"
15 TAGS="wireless wifi network"
16 DEPENDS=""
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed '/tar.gz/!d;s|.*"wireless_tools.||;s|.tar.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|PREFIX)/man|PREFIX)/share/man|' Makefile
28 make CC=${HOST_SYSTEM}-gcc PREFIX=$DESTDIR/usr
29 make PREFIX=$DESTDIR/usr install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib $fs/usr/bin
36 cp -a $install/usr/sbin $fs/usr
37 cp -a $install/usr/lib/*.so* $fs/usr/lib
38 }
40 post_install()
41 {
42 [ -z "$quiet" ] && cat <<EOT
43 You may need to install linux-wireless to have wireless network drivers.
44 Or install tazndis to use Windows drivers.
45 EOT
46 true
47 }
49 # Rules to clean extras dirs or files
50 clean_wok()
51 {
52 rm -rf $WOK/$PACKAGE/${PACKAGE}.${VERSION}
53 }