wok annotate mtpaint/receipt @ rev 17837
Up: mc (4.8.14)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Mon Mar 23 13:48:48 2015 +0100 (2015-03-23) |
parents | 2b9f96603415 |
children | 46683195f95c |
rev | line source |
---|---|
pankso@42 | 1 # SliTaz package receipt. |
pankso@42 | 2 |
pankso@42 | 3 PACKAGE="mtpaint" |
samuel_trassare@11766 | 4 VERSION="3.40" |
pankso@207 | 5 CATEGORY="graphics" |
pankso@42 | 6 SHORT_DESC="Light paint programm and image manipulation." |
pankso@42 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
pankso@42 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@42 | 10 WEB_SITE="http://mtpaint.sourceforge.net/" |
pankso@42 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@16334 | 12 #HOST_ARCH="i486 arm" |
pankso@42 | 13 |
pankso@12120 | 14 DEPENDS="gtk+ libpng lcms" |
pankso@12120 | 15 BUILD_DEPENDS="gtk+-dev libpng-dev lcms-dev" |
pankso@12120 | 16 |
pankso@42 | 17 # Rules to configure and make the package. |
pankso@42 | 18 compile_rules() |
pankso@42 | 19 { |
pankso@12120 | 20 cp -a $stuff/icons/*.xpm $src/src/icons1 |
pankso@16334 | 21 case "$ARCH" in |
pankso@16334 | 22 i?86) |
pankso@16334 | 23 ./configure \ |
pankso@16334 | 24 --cpu=$ARCH \ |
pankso@16334 | 25 --prefix=/usr \ |
pankso@16334 | 26 intl nogif ;; |
pankso@16334 | 27 arm*) |
pankso@16334 | 28 # we need: arm-slitaz-linux-gnueabi-pkg-config |
pankso@16334 | 29 ./configure \ |
pankso@16334 | 30 --prefix=/usr \ |
pankso@16334 | 31 --host=${HOST_SYSTEM} \ |
pankso@16334 | 32 intl nogif |
pankso@16334 | 33 esac && make |
al@13844 | 34 # install mo files to the right place |
al@13844 | 35 for i in $(find $src/po/*.mo); do |
al@13844 | 36 LNG=$(basename $i .mo) |
al@13844 | 37 LFOLDER=$install/usr/share/locale/$LNG/LC_MESSAGES |
al@13844 | 38 mkdir -p $LFOLDER |
al@13846 | 39 cp -a $src/po/$LNG.mo $LFOLDER/mtpaint.mo |
al@13844 | 40 done |
pankso@42 | 41 } |
pankso@42 | 42 |
pankso@42 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@42 | 44 genpkg_rules() |
pankso@42 | 45 { |
pankso@2296 | 46 mkdir -p $fs/usr/bin |
pankso@42 | 47 cp -a $src/src/mtpaint $fs/usr/bin |
pankso@42 | 48 } |