wok view mtpaint/receipt @ rev 24687
Up musl-libc (1.2.2) CVE-2020-28928
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 12 11:02:58 2022 +0000 (2022-03-12) |
parents | 3dd0f58c7a6d |
children | fb479852ba15 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mtpaint"
4 VERSION="3.49.25"
5 COMMIT="03b1b0938067b88d86d9f1b1088730f1934d411e"
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="cairo-dev gtk+-dev lcms2-dev libpng-dev zlib-dev"
19 #HOST_ARCH="i486 arm"
21 current_version()
22 {
23 wget -O - ${WEB_SITE}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 arm*)
42 # we need: arm-slitaz-linux-gnueabi-pkg-config
43 ./configure \
44 --prefix=/usr \
45 --host=${HOST_SYSTEM} \
46 intl nogif
47 esac &&
48 make &&
49 make DESTDIR=$install install
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr/share/applications
56 mkdir -p $fs/usr/share/pixmaps
57 mkdir -p $fs/etc/mtpaint
58 mkdir -p $fs/usr/share/thumbnailers
60 cp -a $install/usr/bin $fs/usr
61 install -m755 -oroot -groot $stuff/mtpaint-doc $fs/usr/bin
62 cp $stuff/*.desktop $fs/usr/share/applications
63 cp $src/doc/mtpaint.png $fs/usr/share/pixmaps
64 cp $stuff/mtpaintrc $fs/etc/mtpaint
65 cp $stuff/mtpaint.thumbnailer $fs/usr/share/thumbnailers
66 }