wok-current view mtpaint/receipt @ rev 22348

xarchiver: removed modification of desktop file
author Hans-G?nter Theisgen
date Mon Nov 18 10:22:34 2019 +0100 (2019-11-18)
parents e06b96c403ca
children 3dd0f58c7a6d
line source
1 # SliTaz package receipt.
3 PACKAGE="mtpaint"
4 VERSION="3.49.14"
5 COMMIT="dbe6758764e2fe45c111f9c3dd493c4c1f77f695"
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 WEB_SITE="http://mtpaint.sourceforge.net/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 WGET_URL="https://github.com/wjaguar/mtPaint/archive/$COMMIT.tar.gz"
16 DEPENDS="gtk+ libpng lcms2"
17 BUILD_DEPENDS="gtk+-dev libpng-dev lcms2-dev zlib-dev cairo-dev"
19 #HOST_ARCH="i486 arm"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 patch -p0 < $stuff/mtpaint.patch
25 sed 's/mem_undo_limit,\t32/mem_undo_limit,\t256/' -i $src/src/mainwindow.c
26 case "$ARCH" in
27 i?86)
28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lpng12"
29 ./configure \
30 --cpu=$ARCH \
31 --prefix=/usr \
32 intl nogif nojp2 ;;
33 arm*)
34 # we need: arm-slitaz-linux-gnueabi-pkg-config
35 ./configure \
36 --prefix=/usr \
37 --host=${HOST_SYSTEM} \
38 intl nogif
39 esac &&
40 make -j 1 &&
41 make DESTDIR=$install install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/share/applications
48 mkdir -p $fs/usr/share/pixmaps
49 mkdir -p $fs/etc/mtpaint
50 mkdir -p $fs/usr/share/thumbnailers
52 cp -a $install/usr/bin $fs/usr
53 install -m755 -oroot -groot $stuff/mtpaint-doc $fs/usr/bin
54 cp $stuff/*.desktop $fs/usr/share/applications
55 cp $src/doc/mtpaint.png $fs/usr/share/pixmaps
56 cp $stuff/mtpaintrc $fs/etc/mtpaint
57 cp $stuff/mtpaint.thumbnailer $fs/usr/share/thumbnailers
58 }