wok-6.x annotate mtpaint/receipt @ rev 18296
Up linux (3.2.71)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 17 11:03:13 2015 +0200 (2015-08-17) |
parents | 46683195f95c |
children | d8b76909ac00 |
rev | line source |
---|---|
pankso@42 | 1 # SliTaz package receipt. |
pankso@42 | 2 |
pankso@42 | 3 PACKAGE="mtpaint" |
al@17948 | 4 VERSION="3.44.91" |
al@17948 | 5 COMMIT="15ec7b65d09bff5372253f9568d06ea97487f9dc" |
pankso@207 | 6 CATEGORY="graphics" |
al@17948 | 7 SHORT_DESC="Painting program to create pixel art and manipulate digital photos" |
pankso@42 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 9 LICENSE="GPL3" |
al@17948 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@42 | 11 WEB_SITE="http://mtpaint.sourceforge.net/" |
al@17948 | 12 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
al@17948 | 13 WGET_URL="https://github.com/wjaguar/mtPaint/archive/$COMMIT.tar.gz" |
pankso@16334 | 14 #HOST_ARCH="i486 arm" |
pankso@42 | 15 |
pankso@12120 | 16 DEPENDS="gtk+ libpng lcms" |
al@17948 | 17 BUILD_DEPENDS="gtk+-dev libpng-dev lcms-dev zlib-dev" |
pankso@12120 | 18 |
pankso@42 | 19 # Rules to configure and make the package. |
pankso@42 | 20 compile_rules() |
pankso@42 | 21 { |
al@17979 | 22 patch -p0 < $stuff/mtpaint.patch |
pankso@16334 | 23 case "$ARCH" in |
pankso@16334 | 24 i?86) |
pankso@16334 | 25 ./configure \ |
pankso@16334 | 26 --cpu=$ARCH \ |
pankso@16334 | 27 --prefix=/usr \ |
pankso@16334 | 28 intl nogif ;; |
pankso@16334 | 29 arm*) |
pankso@16334 | 30 # we need: arm-slitaz-linux-gnueabi-pkg-config |
pankso@16334 | 31 ./configure \ |
pankso@16334 | 32 --prefix=/usr \ |
pankso@16334 | 33 --host=${HOST_SYSTEM} \ |
pankso@16334 | 34 intl nogif |
al@17948 | 35 esac && make && |
al@17948 | 36 make DESTDIR=$install install |
pankso@42 | 37 } |
pankso@42 | 38 |
pankso@42 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@42 | 40 genpkg_rules() |
pankso@42 | 41 { |
al@17979 | 42 mkdir -p $fs/usr/share/applications $fs/usr/share/pixmaps $fs/etc/mtpaint |
al@17948 | 43 cp -a $install/usr/bin $fs/usr |
al@17979 | 44 install -m755 -oroot -groot $stuff/mtpaint-doc $fs/usr/bin |
al@17948 | 45 cp $stuff/*.desktop $fs/usr/share/applications |
al@17979 | 46 cp $src/doc/mtpaint.png $fs/usr/share/pixmaps |
al@17979 | 47 cp $stuff/mtpaintrc $fs/etc/mtpaint |
pankso@42 | 48 } |