wok-next annotate mtpaint/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f48456621a9d |
children | 5669e8b3be70 |
rev | line source |
---|---|
al@20526 | 1 # SliTaz package receipt v2. |
pankso@42 | 2 |
pankso@42 | 3 PACKAGE="mtpaint" |
al@20526 | 4 VERSION="3.49.13" |
al@20526 | 5 COMMIT="3884b6d" |
pankso@207 | 6 CATEGORY="graphics" |
al@17948 | 7 SHORT_DESC="Painting program to create pixel art and manipulate digital photos" |
al@21020 | 8 MAINTAINER="devel@slitaz.org" |
pascal@14999 | 9 LICENSE="GPL3" |
al@20526 | 10 WEB_SITE="http://mtpaint.sourceforge.net/" |
al@20526 | 11 |
al@17948 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@17948 | 13 WGET_URL="https://github.com/wjaguar/mtPaint/archive/$COMMIT.tar.gz" |
pankso@42 | 14 |
al@21020 | 15 BUILD_DEPENDS="gtk2-dev libpng16-dev lcms-dev zlib-dev gettext-dev \ |
al@20890 | 16 libjpeg-turbo-dev tiff-dev" |
pankso@12120 | 17 |
al@20526 | 18 compile_rules() { |
psychomaniak@18845 | 19 sed 's/mem_undo_limit,\t32/mem_undo_limit,\t64/' -i $src/src/mainwindow.c |
al@20526 | 20 |
pankso@16334 | 21 case "$ARCH" in |
al@20526 | 22 i?86) ARCH_ARGS="--cpu=$ARCH intl nogif nojp2";; |
al@20526 | 23 x86_64) ARCH_ARGS="intl nogif nojp2";; |
al@20526 | 24 esac |
al@20526 | 25 |
al@20526 | 26 ./configure \ |
al@20526 | 27 --prefix=/usr \ |
al@20526 | 28 $ARCH_ARGS && |
al@20526 | 29 make && |
al@20526 | 30 make DESTDIR=$install install || return 1 |
al@20526 | 31 |
al@20526 | 32 mkdir -p $install/usr/share/applications/ |
al@20526 | 33 install -Dm644 $stuff/*.desktop $install/usr/share/applications/ |
al@20526 | 34 install -Dm755 $stuff/mtpaint-doc $install/usr/bin/mtpaint-doc |
al@20526 | 35 install -Dm644 $src/doc/mtpaint.png $install/usr/share/pixmaps/mtpaint.png |
al@20526 | 36 install -Dm644 $stuff/mtpaintrc $install/etc/mtpaint/mtpaintrc |
pankso@42 | 37 } |
pankso@42 | 38 |
al@20526 | 39 genpkg_rules() { |
al@20526 | 40 copy @std |
al@21017 | 41 DEPENDS="atk cairo fontconfig freetype gdk-pixbuf glib gtk2 lcms \ |
al@20526 | 42 libjpeg-turbo libpng16 pango tiff xorg-libX11 zlib" |
pankso@42 | 43 } |