wok-stable annotate nathive/receipt @ rev 3595

merge
author Liu Peng <rocky@slitaz.org>
date Sun Jun 28 14:26:17 2009 +0000 (2009-06-28)
parents 72877864776f
children bee79018e13a
rev   line source
jozee@2730 1 # SliTaz package receipt.
jozee@2730 2
jozee@2730 3 PACKAGE="nathive"
jozee@2730 4 VERSION="0.813"
jozee@2730 5 CATEGORY="graphics"
jozee@2730 6 SHORT_DESC="lightweight image editor"
jozee@2730 7 MAINTAINER="jozee@slitaz.org"
pascal@2844 8 DEPENDS="gtk+"
jozee@2730 9 BUILD_DEPENDS="pkg-config gtk+-dev"
jozee@2730 10 TARBALL="${PACKAGE}_${VERSION}_source.tar.gz"
jozee@2730 11 WEB_SITE="http://www.nathive.org/"
jozee@2730 12 WGET_URL="$WEB_SITE/get/$TARBALL"
jozee@2730 13
jozee@2730 14
jozee@2730 15 # Rules to configure and make the package.
jozee@2730 16 compile_rules()
jozee@2730 17 {
jozee@2730 18 src="$WOK/$PACKAGE/${PACKAGE}_${VERSION}_source"
jozee@2730 19 cd $src
jozee@2730 20 sed 's|"./"|"/usr/share/nathive/"|g' -i main.c
jozee@2730 21 make
jozee@2730 22 }
jozee@2730 23
jozee@2730 24 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2730 25 genpkg_rules()
jozee@2730 26 {
jozee@2730 27 mkdir -p $fs/usr/bin
jozee@2730 28 mkdir -p $fs/usr/share/nathive
jozee@2730 29 mkdir -p $fs/usr/share/applications
jozee@2730 30 _pkg="$WOK/$PACKAGE/${PACKAGE}_${VERSION}_source"
jozee@2730 31
jozee@2730 32 cp -a $_pkg/nathive $fs/usr/bin
jozee@2730 33
jozee@2730 34 cp -a $_pkg/cfg/ $_pkg/img/ $_pkg/palettes/ $_pkg/text/ $fs/usr/share/nathive/
jozee@2730 35 #copy locale : it only adds 4k
jozee@2730 36 cp -a $_pkg/lang/ $fs/usr/share/nathive/
jozee@2730 37 # change owner and permissions
jozee@2730 38 chown -R root.root $fs/usr/share/nathive
jozee@2730 39 chmod -R 0755 $fs/usr/share/nathive
jozee@2730 40
jozee@2730 41 cp -a stuff/nathive.desktop $fs/usr/share/applications
jozee@2730 42
jozee@2730 43 }