wok view mtpaint/receipt @ rev 25808

created recipe for xmenu
author Hans-G?nter Theisgen
date Thu Dec 19 16:09:37 2024 +0100 (5 days ago)
parents 7dd01dedad38
children
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://mtpaint.sourceforge.net/"
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 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://mtpaint.sourceforge.net/download.html 2>/dev/null | \
24 sed '/HERE/!d;s|.*files.mtpaint.||;s|.">.*||'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 patch -p0 < $stuff/mtpaint.patch
31 sed -i 's/mem_undo_limit,\t32/mem_undo_limit,\t256/' \
32 $src/src/mainwindow.c
34 case "$ARCH" in
35 (i?86)
36 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lpng12"
37 ./configure \
38 --cpu=$ARCH \
39 --prefix=/usr \
40 intl nogif nojp2
41 ;;
42 (arm*)
43 # we need: arm-slitaz-linux-gnueabi-pkg-config
44 ./configure \
45 --prefix=/usr \
46 --host=${HOST_SYSTEM} \
47 intl nogif
48 ;;
49 esac &&
50 make &&
51 make install DESTDIR=$install
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 mkdir -p $fs/etc/mtpaint
58 mkdir -p $fs/usr/share/applications
59 mkdir -p $fs/usr/share/pixmaps
60 mkdir -p $fs/usr/share/thumbnailers
62 cp -a $install/usr/bin $fs/usr
63 install -m755 -oroot -groot $stuff/mtpaint-doc $fs/usr/bin
64 cp $stuff/mtpaintrc $fs/etc/mtpaint
65 cp $stuff/*.desktop $fs/usr/share/applications
66 cp $src/doc/mtpaint.png $fs/usr/share/pixmaps
67 cp $stuff/mtpaint.thumbnailer $fs/usr/share/thumbnailers
68 }