wok-current view airoscript-ng/receipt @ rev 19267
Compress manpages.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 04 11:45:47 2016 +0300 (2016-07-04) |
parents | f4c22f009037 |
children | 11b5e93cb5f2 |
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 TARBALL="$PACKAGE-${VERSION%rc3}-3.tar.gz"
10 WEB_SITE="http://code.google.com/p/airoscript/"
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 cp -a $src/src/airoscript-ng.1 $install/usr/share/man/man1
34 cook_compress_manpages
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share
41 cp -a $install/usr/sbin $fs/usr
42 cp -a $install/usr/share/airoscript-ng $fs/usr/share
43 cp -a $install/etc $fs
44 }