wok-current view mtpaint/receipt @ rev 19554
upx: add doc links
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 11 15:06:50 2016 +0100 (2016-12-11) |
parents | d8b76909ac00 |
children | 073f6f21af19 |
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 sed 's/mem_undo_limit,\t32/mem_undo_limit,\t64/' -i $src/src/mainwindow.c
24 case "$ARCH" in
25 i?86)
26 ./configure \
27 --cpu=$ARCH \
28 --prefix=/usr \
29 intl nogif nojp2 ;;
30 arm*)
31 # we need: arm-slitaz-linux-gnueabi-pkg-config
32 ./configure \
33 --prefix=/usr \
34 --host=${HOST_SYSTEM} \
35 intl nogif
36 esac && make &&
37 make DESTDIR=$install install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/share/applications $fs/usr/share/pixmaps $fs/etc/mtpaint $fs/usr/share/thumbnailers
44 cp -a $install/usr/bin $fs/usr
45 install -m755 -oroot -groot $stuff/mtpaint-doc $fs/usr/bin
46 cp $stuff/*.desktop $fs/usr/share/applications
47 cp $src/doc/mtpaint.png $fs/usr/share/pixmaps
48 cp $stuff/mtpaintrc $fs/etc/mtpaint
49 cp $stuff/mtpaint.thumbnailer $fs/usr/share/thumbnailers
50 }