wok view mtpaint/receipt @ rev 13844

mtpaint: install .mo files to the right place (hello to slitaz-i18n and locale-xx packages), improve .desktop files; lyx: improve .desktop file
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jan 08 21:19:16 2013 +0000 (2013-01-08)
parents 1d7ed7daacdd
children 2fea9f650677
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=i486 \
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 $scr/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 }