# HG changeset patch # User Rohit Joshi # Date 1240558534 0 # Node ID 72877864776f726f6a316132b1e038469cdc996a # Parent 6cf08b22eab9d733d9ab67922265ef324e54584e Add: nathive image editor diff -r 6cf08b22eab9 -r 72877864776f nathive/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nathive/receipt Fri Apr 24 07:35:34 2009 +0000 @@ -0,0 +1,43 @@ +# SliTaz package receipt. + +PACKAGE="nathive" +VERSION="0.813" +CATEGORY="graphics" +SHORT_DESC="lightweight image editor" +MAINTAINER="jozee@slitaz.org" +DEPENDS="" +BUILD_DEPENDS="pkg-config gtk+-dev" +TARBALL="${PACKAGE}_${VERSION}_source.tar.gz" +WEB_SITE="http://www.nathive.org/" +WGET_URL="$WEB_SITE/get/$TARBALL" + + +# Rules to configure and make the package. +compile_rules() +{ + src="$WOK/$PACKAGE/${PACKAGE}_${VERSION}_source" + cd $src + sed 's|"./"|"/usr/share/nathive/"|g' -i main.c + make +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + mkdir -p $fs/usr/share/nathive + mkdir -p $fs/usr/share/applications + _pkg="$WOK/$PACKAGE/${PACKAGE}_${VERSION}_source" + + cp -a $_pkg/nathive $fs/usr/bin + + cp -a $_pkg/cfg/ $_pkg/img/ $_pkg/palettes/ $_pkg/text/ $fs/usr/share/nathive/ + #copy locale : it only adds 4k + cp -a $_pkg/lang/ $fs/usr/share/nathive/ + # change owner and permissions + chown -R root.root $fs/usr/share/nathive + chmod -R 0755 $fs/usr/share/nathive + + cp -a stuff/nathive.desktop $fs/usr/share/applications + +} diff -r 6cf08b22eab9 -r 72877864776f nathive/stuff/nathive.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nathive/stuff/nathive.desktop Fri Apr 24 07:35:34 2009 +0000 @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Nathive Image Editor +Comment=A fast GTK+ Image Viewer +Exec=nathive %f +Terminal=false +Type=Application +Icon=gpicview.png +Categories=GTK;Graphics;2DGraphics;Viewer; +MimeType=image/bmp;image/gif;image/jpeg;image/jpg;image/png; +