wok rev 2730

Add: nathive image editor
author Rohit Joshi <jozee@slitaz.org>
date Fri Apr 24 07:35:34 2009 +0000 (2009-04-24)
parents 6cf08b22eab9
children 1c776cd95d41
files nathive/receipt nathive/stuff/nathive.desktop
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nathive/receipt	Fri Apr 24 07:35:34 2009 +0000
     1.3 @@ -0,0 +1,43 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="nathive"
     1.7 +VERSION="0.813"
     1.8 +CATEGORY="graphics"
     1.9 +SHORT_DESC="lightweight image editor"
    1.10 +MAINTAINER="jozee@slitaz.org"
    1.11 +DEPENDS=""
    1.12 +BUILD_DEPENDS="pkg-config gtk+-dev"
    1.13 +TARBALL="${PACKAGE}_${VERSION}_source.tar.gz"
    1.14 +WEB_SITE="http://www.nathive.org/" 
    1.15 +WGET_URL="$WEB_SITE/get/$TARBALL"
    1.16 +
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +    src="$WOK/$PACKAGE/${PACKAGE}_${VERSION}_source"
    1.22 +	cd $src
    1.23 +	sed 's|"./"|"/usr/share/nathive/"|g' -i main.c
    1.24 +	make	
    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 +	_pkg="$WOK/$PACKAGE/${PACKAGE}_${VERSION}_source"
    1.34 +
    1.35 +	cp -a $_pkg/nathive $fs/usr/bin
    1.36 +	
    1.37 +	cp -a $_pkg/cfg/ $_pkg/img/ $_pkg/palettes/ $_pkg/text/ $fs/usr/share/nathive/
    1.38 +	#copy locale : it only adds 4k
    1.39 +	cp -a $_pkg/lang/ $fs/usr/share/nathive/
    1.40 +	# change owner and permissions
    1.41 +	chown -R root.root $fs/usr/share/nathive
    1.42 +	chmod -R 0755 $fs/usr/share/nathive
    1.43 +	
    1.44 +	cp -a stuff/nathive.desktop $fs/usr/share/applications 
    1.45 +
    1.46 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/nathive/stuff/nathive.desktop	Fri Apr 24 07:35:34 2009 +0000
     2.3 @@ -0,0 +1,10 @@
     2.4 +[Desktop Entry]
     2.5 +Name=Nathive Image Editor
     2.6 +Comment=A fast GTK+ Image Viewer
     2.7 +Exec=nathive %f
     2.8 +Terminal=false
     2.9 +Type=Application
    2.10 +Icon=gpicview.png
    2.11 +Categories=GTK;Graphics;2DGraphics;Viewer;
    2.12 +MimeType=image/bmp;image/gif;image/jpeg;image/jpg;image/png;
    2.13 +