wok-6.x view airoscript-ng/receipt @ rev 24569
sokojs: add shrink.sh (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 26 18:46:53 2022 +0000 (2022-02-26) |
parents | 104a2a2e5484 |
children | 9b180a3071fb |
line source
1 # SliTaz package receipt.
3 PACKAGE="airoscript-ng"
4 VERSION="1.2rc3"
5 CATEGORY="network"
6 SHORT_DESC="Airoscript ng"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://airoscript.aircrack-ng.org/"
10 TARBALL="$PACKAGE-${VERSION%rc3}-3.tar.gz"
11 WGET_URL="http://airoscript.googlecode.com/files/$TARBALL"
13 DEPENDS="bash"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://www.aircrack-ng.org/ 2>/dev/null | \
19 sed '/aircrack-ng/!d;/tar/!d;s|.*ng-||;s|.tar.*||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 # Remove broken install parts
26 sed -i '/install-docs \\/ d' Makefile-Linux
27 sed -i '/install-locale \\/ d' Makefile-Linux
28 sed -i '/install-desktop \\/ d' Makefile-Linux
29 make -j1 DESTDIR=$DESTDIR \
30 prefix=usr \
31 picdir=$DESTDIR/usr/share/pixmaps/ \
32 appdir=$DESTDIR/usr/share/applications/ \
33 etcdir=$DESTDIR/etc/$PACKAGE install
34 # Patch config - replace "usr/local" by "usr"
35 sed -i 's/usr\/local/usr/g' $DESTDIR/etc/$PACKAGE/airoscript-ng_advanced.conf
37 # Patch executable to find config files
38 sed -i 's/etc\//etc\/airoscript-ng\//g' $DESTDIR/usr/sbin/$PACKAGE
40 cook_pick_manpages $src/src/airoscript-ng.1
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/share
47 cp -a $install/usr/sbin $fs/usr
48 cp -a $install/usr/share/airoscript-ng $fs/usr/share
49 cp -a $install/etc $fs
50 }