wok-6.x diff airoscript-ng/receipt @ rev 14294

Up: eio (1.7.5)
author Dominique Corbex <domcox@slitaz.org>
date Sun Apr 07 10:06:26 2013 +0200 (2013-04-07)
parents be13f25e790b
children f4c22f009037
line diff
     1.1 --- a/airoscript-ng/receipt	Sun Feb 20 06:53:59 2011 +0000
     1.2 +++ b/airoscript-ng/receipt	Sun Apr 07 10:06:26 2013 +0200
     1.3 @@ -1,13 +1,12 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="airoscript-ng"
     1.7 -VERSION="1.0rc1"
     1.8 +VERSION="1.2rc3"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="Airoscript ng"
    1.11  MAINTAINER="slaxemulator@gmail.com"
    1.12  DEPENDS="bash"
    1.13 -SOURCE="Airoscript-ng"
    1.14 -TARBALL="${SOURCE}${VERSION%rc1}.tgz"
    1.15 +TARBALL="$PACKAGE-${VERSION%rc3}-3.tar.gz"
    1.16  WEB_SITE="http://code.google.com/p/airoscript/"
    1.17  WGET_URL="http://airoscript.googlecode.com/files/$TARBALL"
    1.18  
    1.19 @@ -15,9 +14,20 @@
    1.20  compile_rules()
    1.21  {
    1.22  	cd $src
    1.23 -	patch -Np0 -i $stuff/path.patch
    1.24 -	patch -Np0 -i $stuff/makefile.patch
    1.25 -	make -j1 prefix=$DESTDIR/usr install
    1.26 +	# Remove broken install parts
    1.27 +	sed -i '/install-docs \\/ d' Makefile-Linux
    1.28 +	sed -i '/install-locale \\/ d' Makefile-Linux
    1.29 +	sed -i '/install-desktop \\/ d' Makefile-Linux
    1.30 +	make -j1 DESTDIR=$DESTDIR \
    1.31 +		prefix=usr \
    1.32 +		picdir=$DESTDIR/usr/share/pixmaps/ \
    1.33 +		appdir=$DESTDIR/usr/share/applications/ \
    1.34 +		etcdir=$DESTDIR/etc/$PACKAGE install
    1.35 +	# Patch config - replace "usr/local" by "usr"
    1.36 +	sed -i 's/usr\/local/usr/g' $DESTDIR/etc/$PACKAGE/airoscript-ng_advanced.conf
    1.37 +
    1.38 +	# Patch executable to find config files
    1.39 +	sed -i 's/etc\//etc\/airoscript-ng\//g' $DESTDIR/usr/sbin/$PACKAGE
    1.40  }
    1.41  
    1.42  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.43 @@ -26,9 +36,6 @@
    1.44  	mkdir -p $fs/usr/share
    1.45  	cp -a $_pkg/usr/sbin $fs/usr
    1.46  	cp -a $_pkg/usr/share/airoscript-ng $fs/usr/share
    1.47 -	cp -a $_pkg/usr/etc $fs/etc
    1.48 -	mv $fs/etc/screenrc $fs/usr/share/airoscript-ng/
    1.49 -	cd $fs/etc
    1.50 -	patch -Np0 -i $stuff/config.patch
    1.51 +	cp -a $_pkg/etc $fs
    1.52  }
    1.53