wok-current view mtpaint/receipt @ rev 25521
created recipes for unibilium and unibilium-dev 2.1.1
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 17:05:40 2023 +0100 (21 months ago) |
parents | 1fd16249314e |
children | 3ad63c8fc2f9 |
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://sourceforge.net/projects/mtpaint/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 }