wok-6.x view mtpaint/receipt @ rev 18070

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