wok view airoscript-ng/receipt @ rev 24391

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 07 18:01:05 2022 +0000 (2022-02-07)
parents 6e8b1bcb30e2
children 241fb98cab1c
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://airoscript.aircrack-ng.org/?page=download' 2>/dev/null | \
19 sed '/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 }