wok view airoscript-ng/receipt @ rev 20454
Up zstd (1.3.6)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 06 15:17:20 2018 +0200 (2018-10-06) |
parents | 45507bfb2b0d |
children | 6e8b1bcb30e2 |
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://code.google.com/archive/p/airoscript/"
10 TARBALL="$PACKAGE-${VERSION%rc3}-3.tar.gz"
11 WGET_URL="http://airoscript.googlecode.com/files/$TARBALL"
13 DEPENDS="bash"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 # Remove broken install parts
19 sed -i '/install-docs \\/ d' Makefile-Linux
20 sed -i '/install-locale \\/ d' Makefile-Linux
21 sed -i '/install-desktop \\/ d' Makefile-Linux
22 make -j1 DESTDIR=$DESTDIR \
23 prefix=usr \
24 picdir=$DESTDIR/usr/share/pixmaps/ \
25 appdir=$DESTDIR/usr/share/applications/ \
26 etcdir=$DESTDIR/etc/$PACKAGE install
27 # Patch config - replace "usr/local" by "usr"
28 sed -i 's/usr\/local/usr/g' $DESTDIR/etc/$PACKAGE/airoscript-ng_advanced.conf
30 # Patch executable to find config files
31 sed -i 's/etc\//etc\/airoscript-ng\//g' $DESTDIR/usr/sbin/$PACKAGE
33 cook_pick_manpages $src/src/airoscript-ng.1
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share
40 cp -a $install/usr/sbin $fs/usr
41 cp -a $install/usr/share/airoscript-ng $fs/usr/share
42 cp -a $install/etc $fs
43 }