wok-next view mtpaint/receipt @ rev 20459
Combine receipts
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 02 13:45:43 2018 +0200 (2018-03-02) |
parents | dd145c435e4b |
children | f879ce3f57b0 |
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"
15 DEPENDS="gtk+ libpng16 lcms"
16 BUILD_DEPENDS="gtk+-dev libpng16-dev lcms-dev zlib-dev gettext"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 patch -p0 < $stuff/mtpaint.patch
22 sed 's/mem_undo_limit,\t32/mem_undo_limit,\t64/' -i $src/src/mainwindow.c
23 case "$ARCH" in
24 i?86)
25 ./configure \
26 --cpu=$ARCH \
27 --prefix=/usr \
28 intl nogif nojp2 ;;
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 $fs/usr/share/thumbnailers
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 cp $stuff/mtpaint.thumbnailer $fs/usr/share/thumbnailers
49 }