wok-current view mtpaint/receipt @ rev 25376
updated tzdata (2019c -> 2022a)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 10:43:02 2022 +0100 (2022-07-30) |
parents | ee53899c6189 |
children | 1fd16249314e |
line source
1 # SliTaz package receipt.
3 PACKAGE="mtpaint"
4 VERSION="3.50"
5 CATEGORY="graphics"
6 SHORT_DESC="Painting program to create pixel art and manipulate digital photos."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://sourceforge.net/projects/mtpaint/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 SUGGESTED="mtpaint-lang"
15 DEPENDS="gtk+ lcms2 libpng"
16 BUILD_DEPENDS="cairo-dev gtk+-dev lcms2-dev libpng-dev zlib-dev"
18 #HOST_ARCH="i486 arm"
20 current_version()
21 {
22 wget -O - ${WEB_SITE}download.html 2>/dev/null | \
23 sed '/HERE/!d;s|.*files.mtpaint.||;s|.">.*||'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 patch -p0 < $stuff/mtpaint.patch
30 sed -i 's/mem_undo_limit,\t32/mem_undo_limit,\t256/' \
31 $src/src/mainwindow.c
33 case "$ARCH" in
34 (i?86)
35 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lpng12"
36 ./configure \
37 --cpu=$ARCH \
38 --prefix=/usr \
39 intl nogif nojp2
40 ;;
41 (arm*)
42 # we need: arm-slitaz-linux-gnueabi-pkg-config
43 ./configure \
44 --prefix=/usr \
45 --host=${HOST_SYSTEM} \
46 intl nogif
47 ;;
48 esac &&
49 make &&
50 make install DESTDIR=$install
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 mkdir -p $fs/etc/mtpaint
57 mkdir -p $fs/usr/share/applications
58 mkdir -p $fs/usr/share/pixmaps
59 mkdir -p $fs/usr/share/thumbnailers
61 cp -a $install/usr/bin $fs/usr
62 install -m755 -oroot -groot $stuff/mtpaint-doc $fs/usr/bin
63 cp $stuff/mtpaintrc $fs/etc/mtpaint
64 cp $stuff/*.desktop $fs/usr/share/applications
65 cp $src/doc/mtpaint.png $fs/usr/share/pixmaps
66 cp $stuff/mtpaint.thumbnailer $fs/usr/share/thumbnailers
67 }