wok-6.x annotate nathive/receipt @ rev 5390
Up: gtk+ (2.19.7)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 01 23:37:46 2010 +0200 (2010-05-01) |
parents | 3dce3a64acf3 |
children | be13f25e790b |
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@4969 | 13 TAGS="image photo editor" |
jozee@2730 | 14 |
jozee@2730 | 15 |
jozee@2730 | 16 # Rules to configure and make the package. |
jozee@2730 | 17 compile_rules() |
jozee@2730 | 18 { |
jozee@2730 | 19 src="$WOK/$PACKAGE/${PACKAGE}_${VERSION}_source" |
jozee@2730 | 20 cd $src |
jozee@2730 | 21 sed 's|"./"|"/usr/share/nathive/"|g' -i main.c |
jozee@2730 | 22 make |
jozee@2730 | 23 } |
jozee@2730 | 24 |
jozee@2730 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2730 | 26 genpkg_rules() |
jozee@2730 | 27 { |
jozee@2730 | 28 mkdir -p $fs/usr/bin |
jozee@2730 | 29 mkdir -p $fs/usr/share/nathive |
jozee@2730 | 30 mkdir -p $fs/usr/share/applications |
jozee@2730 | 31 _pkg="$WOK/$PACKAGE/${PACKAGE}_${VERSION}_source" |
jozee@2730 | 32 |
jozee@2730 | 33 cp -a $_pkg/nathive $fs/usr/bin |
jozee@2730 | 34 |
jozee@2730 | 35 cp -a $_pkg/cfg/ $_pkg/img/ $_pkg/palettes/ $_pkg/text/ $fs/usr/share/nathive/ |
jozee@2730 | 36 #copy locale : it only adds 4k |
jozee@2730 | 37 cp -a $_pkg/lang/ $fs/usr/share/nathive/ |
jozee@2730 | 38 # change owner and permissions |
jozee@2730 | 39 chown -R root.root $fs/usr/share/nathive |
jozee@2730 | 40 chmod -R 0755 $fs/usr/share/nathive |
jozee@2730 | 41 |
jozee@2730 | 42 cp -a stuff/nathive.desktop $fs/usr/share/applications |
jozee@2730 | 43 |
jozee@2730 | 44 } |