wok annotate nathive/receipt @ rev 13347
Up nathive (0.924)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 07 11:34:45 2012 +0200 (2012-09-07) |
parents | be13f25e790b |
children | 9b389bb0a873 |
rev | line source |
---|---|
jozee@2730 | 1 # SliTaz package receipt. |
jozee@2730 | 2 |
jozee@2730 | 3 PACKAGE="nathive" |
pascal@13347 | 4 VERSION="0.924" |
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" |
pascal@13347 | 10 TARBALL="$PACKAGE-$VERSION.tgz" |
jozee@2730 | 11 WEB_SITE="http://www.nathive.org/" |
pascal@13347 | 12 WGET_URL="${WEB_SITE}dl/$TARBALL" |
jozee@4969 | 13 TAGS="image photo editor" |
jozee@2730 | 14 |
jozee@2730 | 15 # Rules to configure and make the package. |
jozee@2730 | 16 compile_rules() |
jozee@2730 | 17 { |
jozee@2730 | 18 cd $src |
jozee@2730 | 19 sed 's|"./"|"/usr/share/nathive/"|g' -i main.c |
jozee@2730 | 20 make |
jozee@2730 | 21 } |
jozee@2730 | 22 |
jozee@2730 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2730 | 24 genpkg_rules() |
jozee@2730 | 25 { |
slaxemulator@8751 | 26 mkdir -p $fs/usr/bin |
slaxemulator@8751 | 27 mkdir -p $fs/usr/share/nathive |
jozee@2730 | 28 mkdir -p $fs/usr/share/applications |
jozee@2730 | 29 |
slaxemulator@8751 | 30 cp -a $src/nathive $fs/usr/bin |
jozee@2730 | 31 |
slaxemulator@8751 | 32 cp -a $src/cfg/ $src/img/ $src/palettes/ $src/text/ $fs/usr/share/nathive/ |
jozee@2730 | 33 #copy locale : it only adds 4k |
slaxemulator@8751 | 34 cp -a $src/lang/ $fs/usr/share/nathive/ |
jozee@2730 | 35 # change owner and permissions |
jozee@2730 | 36 chown -R root.root $fs/usr/share/nathive |
jozee@2730 | 37 chmod -R 0755 $fs/usr/share/nathive |
jozee@2730 | 38 |
slaxemulator@8751 | 39 cp -a $stuff/nathive.desktop $fs/usr/share/applications |
jozee@2730 | 40 |
jozee@2730 | 41 } |