wok-6.x view mtpaint/receipt @ rev 14065
shaarli: fix genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 20 12:48:01 2013 +0100 (2013-02-20) |
parents | 2fea9f650677 |
children | 2b9f96603415 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mtpaint"
4 VERSION="3.40"
5 CATEGORY="graphics"
6 SHORT_DESC="Light paint programm and image manipulation."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://mtpaint.sourceforge.net/"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 DEPENDS="gtk+ libpng lcms"
13 BUILD_DEPENDS="gtk+-dev libpng-dev lcms-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cp -a $stuff/icons/*.xpm $src/src/icons1
19 cd $src
20 ./configure \
21 --cpu=$ARCH \
22 --prefix=/usr \
23 intl nogif &&
24 make
25 # install mo files to the right place
26 for i in $(find $src/po/*.mo); do
27 LNG=$(basename $i .mo)
28 LFOLDER=$install/usr/share/locale/$LNG/LC_MESSAGES
29 mkdir -p $LFOLDER
30 cp -a $src/po/$LNG.mo $LFOLDER/mtpaint.mo
31 done
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin
38 cp -a $src/src/mtpaint $fs/usr/bin
39 }