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