wok annotate mtpaint/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | 7dd01dedad38 |
children |
rev | line source |
---|---|
pankso@42 | 1 # SliTaz package receipt. |
pankso@42 | 2 |
pankso@42 | 3 PACKAGE="mtpaint" |
Hans-G?nter@24930 | 4 VERSION="3.50" |
pankso@207 | 5 CATEGORY="graphics" |
Hans-G?nter@21138 | 6 SHORT_DESC="Painting program to create pixel art and manipulate digital photos." |
pankso@42 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
pascal@25460 | 9 WEB_SITE="https://mtpaint.sourceforge.net/" |
Hans-G?nter@21138 | 10 |
Hans-G?nter@24930 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@24930 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@42 | 13 |
Hans-G?nter@24930 | 14 SUGGESTED="mtpaint-lang" |
Hans-G?nter@24930 | 15 DEPENDS="gtk+ lcms2 libpng" |
Hans-G?nter@23199 | 16 BUILD_DEPENDS="cairo-dev gtk+-dev lcms2-dev libpng-dev zlib-dev" |
Hans-G?nter@21498 | 17 |
Hans-G?nter@21138 | 18 #HOST_ARCH="i486 arm" |
pankso@12120 | 19 |
pascal@25434 | 20 # What is the latest version available today? |
pascal@24071 | 21 current_version() |
pascal@24071 | 22 { |
pascal@25608 | 23 wget -O - https://mtpaint.sourceforge.net/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 |
Hans-G?nter@24930 | 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 \ |
Hans-G?nter@24930 | 40 intl nogif nojp2 |
Hans-G?nter@24930 | 41 ;; |
Hans-G?nter@24930 | 42 (arm*) |
pankso@16334 | 43 # we need: arm-slitaz-linux-gnueabi-pkg-config |
pankso@16334 | 44 ./configure \ |
pankso@16334 | 45 --prefix=/usr \ |
pankso@16334 | 46 --host=${HOST_SYSTEM} \ |
pankso@16334 | 47 intl nogif |
Hans-G?nter@24930 | 48 ;; |
Hans-G?nter@21138 | 49 esac && |
Hans-G?nter@23199 | 50 make && |
Hans-G?nter@24930 | 51 make install DESTDIR=$install |
pankso@42 | 52 } |
pankso@42 | 53 |
pankso@42 | 54 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@42 | 55 genpkg_rules() |
pankso@42 | 56 { |
Hans-G?nter@24930 | 57 mkdir -p $fs/etc/mtpaint |
Hans-G?nter@21498 | 58 mkdir -p $fs/usr/share/applications |
Hans-G?nter@21498 | 59 mkdir -p $fs/usr/share/pixmaps |
Hans-G?nter@21498 | 60 mkdir -p $fs/usr/share/thumbnailers |
Hans-G?nter@21138 | 61 |
Hans-G?nter@21138 | 62 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21138 | 63 install -m755 -oroot -groot $stuff/mtpaint-doc $fs/usr/bin |
Hans-G?nter@24930 | 64 cp $stuff/mtpaintrc $fs/etc/mtpaint |
Hans-G?nter@21138 | 65 cp $stuff/*.desktop $fs/usr/share/applications |
Hans-G?nter@21138 | 66 cp $src/doc/mtpaint.png $fs/usr/share/pixmaps |
Hans-G?nter@21138 | 67 cp $stuff/mtpaint.thumbnailer $fs/usr/share/thumbnailers |
pankso@42 | 68 } |