wok annotate mtpaint/receipt @ rev 24217
updated perl-html-parser (3.72 -> 3.76)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 16:34:31 2021 +0100 (2021-12-31) |
parents | 3dd0f58c7a6d |
children | fb479852ba15 |
rev | line source |
---|---|
pankso@42 | 1 # SliTaz package receipt. |
pankso@42 | 2 |
pankso@42 | 3 PACKAGE="mtpaint" |
Hans-G?nter@23199 | 4 VERSION="3.49.25" |
Hans-G?nter@23199 | 5 COMMIT="03b1b0938067b88d86d9f1b1088730f1934d411e" |
pankso@207 | 6 CATEGORY="graphics" |
Hans-G?nter@21138 | 7 SHORT_DESC="Painting program to create pixel art and manipulate digital photos." |
pankso@42 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 9 LICENSE="GPL3" |
Hans-G?nter@21138 | 10 WEB_SITE="http://mtpaint.sourceforge.net/" |
Hans-G?nter@21138 | 11 |
al@17948 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@17948 | 13 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
al@17948 | 14 WGET_URL="https://github.com/wjaguar/mtPaint/archive/$COMMIT.tar.gz" |
pankso@42 | 15 |
pascal@19717 | 16 DEPENDS="gtk+ libpng lcms2" |
Hans-G?nter@23199 | 17 BUILD_DEPENDS="cairo-dev gtk+-dev lcms2-dev libpng-dev zlib-dev" |
Hans-G?nter@21498 | 18 |
Hans-G?nter@21138 | 19 #HOST_ARCH="i486 arm" |
pankso@12120 | 20 |
pascal@24071 | 21 current_version() |
pascal@24071 | 22 { |
pascal@24071 | 23 wget -O - ${WEB_SITE}download.html 2>/dev/null | \ |
pascal@24071 | 24 sed '/HERE/!d;s|.*files.mtpaint.||;s|.">.*||' |
pascal@24071 | 25 } |
pascal@24071 | 26 |
pankso@42 | 27 # Rules to configure and make the package. |
pankso@42 | 28 compile_rules() |
pankso@42 | 29 { |
al@17979 | 30 patch -p0 < $stuff/mtpaint.patch |
Hans-G?nter@23199 | 31 sed -i 's/mem_undo_limit,\t32/mem_undo_limit,\t256/' \ |
Hans-G?nter@23199 | 32 $src/src/mainwindow.c |
Hans-G?nter@23199 | 33 |
pankso@16334 | 34 case "$ARCH" in |
pankso@16334 | 35 i?86) |
pascal@19717 | 36 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lpng12" |
Hans-G?nter@23199 | 37 ./configure \ |
Hans-G?nter@23199 | 38 --cpu=$ARCH \ |
Hans-G?nter@23199 | 39 --prefix=/usr \ |
psychomaniak@18394 | 40 intl nogif nojp2 ;; |
pankso@16334 | 41 arm*) |
pankso@16334 | 42 # we need: arm-slitaz-linux-gnueabi-pkg-config |
pankso@16334 | 43 ./configure \ |
pankso@16334 | 44 --prefix=/usr \ |
pankso@16334 | 45 --host=${HOST_SYSTEM} \ |
pankso@16334 | 46 intl nogif |
Hans-G?nter@21138 | 47 esac && |
Hans-G?nter@23199 | 48 make && |
al@17948 | 49 make DESTDIR=$install install |
pankso@42 | 50 } |
pankso@42 | 51 |
pankso@42 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@42 | 53 genpkg_rules() |
pankso@42 | 54 { |
Hans-G?nter@21498 | 55 mkdir -p $fs/usr/share/applications |
Hans-G?nter@21498 | 56 mkdir -p $fs/usr/share/pixmaps |
Hans-G?nter@21498 | 57 mkdir -p $fs/etc/mtpaint |
Hans-G?nter@21498 | 58 mkdir -p $fs/usr/share/thumbnailers |
Hans-G?nter@21138 | 59 |
Hans-G?nter@21138 | 60 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21138 | 61 install -m755 -oroot -groot $stuff/mtpaint-doc $fs/usr/bin |
Hans-G?nter@21138 | 62 cp $stuff/*.desktop $fs/usr/share/applications |
Hans-G?nter@21138 | 63 cp $src/doc/mtpaint.png $fs/usr/share/pixmaps |
Hans-G?nter@21138 | 64 cp $stuff/mtpaintrc $fs/etc/mtpaint |
Hans-G?nter@21138 | 65 cp $stuff/mtpaint.thumbnailer $fs/usr/share/thumbnailers |
pankso@42 | 66 } |