wok view nathive/receipt @ rev 3017
Add Xorg video driver geode + i740
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 11 22:36:33 2009 +0200 (2009-05-11) |
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 }