wok rev 13348

Up nathive (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 07 12:00:57 2012 +0200 (2012-09-07)
parents c10e7f955563
children 473b2d729747
files nathive/receipt
line diff
     1.1 --- a/nathive/receipt	Fri Sep 07 11:34:45 2012 +0200
     1.2 +++ b/nathive/receipt	Fri Sep 07 12:00:57 2012 +0200
     1.3 @@ -5,37 +5,24 @@
     1.4  CATEGORY="graphics"
     1.5  SHORT_DESC="lightweight image editor"
     1.6  MAINTAINER="jozee@slitaz.org"
     1.7 -DEPENDS="gtk+"
     1.8 -BUILD_DEPENDS="pkg-config gtk+-dev"
     1.9  TARBALL="$PACKAGE-$VERSION.tgz"
    1.10  WEB_SITE="http://www.nathive.org/" 
    1.11  WGET_URL="${WEB_SITE}dl/$TARBALL"
    1.12  TAGS="image photo editor"
    1.13  
    1.14 +DEPENDS="gtk+ python"
    1.15 +BUILD_DEPENDS="pkg-config gtk+-dev python-dev coreutils-operations"
    1.16 +
    1.17  # Rules to configure and make the package.
    1.18  compile_rules()
    1.19  {
    1.20  	cd $src
    1.21 -	sed 's|"./"|"/usr/share/nathive/"|g' -i main.c
    1.22 -	make	
    1.23 +	sed -i "s|^BASE.*|BASE = $DESTDIR/usr/|;s|nathive.sh|nathive.py|" makefile
    1.24 +	make install
    1.25  }
    1.26  
    1.27  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.28  genpkg_rules()
    1.29  {
    1.30 -	mkdir -p $fs/usr/bin
    1.31 -	mkdir -p $fs/usr/share/nathive  
    1.32 -	mkdir -p $fs/usr/share/applications 
    1.33 -
    1.34 -	cp -a $src/nathive $fs/usr/bin
    1.35 -	
    1.36 -	cp -a $src/cfg/ $src/img/ $src/palettes/ $src/text/ $fs/usr/share/nathive/
    1.37 -	#copy locale : it only adds 4k
    1.38 -	cp -a $src/lang/ $fs/usr/share/nathive/
    1.39 -	# change owner and permissions
    1.40 -	chown -R root.root $fs/usr/share/nathive
    1.41 -	chmod -R 0755 $fs/usr/share/nathive
    1.42 -	
    1.43 -	cp -a $stuff/nathive.desktop $fs/usr/share/applications 
    1.44 -
    1.45 +	cp -a $install/usr $fs
    1.46  }