summaryrefslogtreecommitdiff
path: root/community/mtpaint/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/mtpaint/PKGBUILD')
-rw-r--r--community/mtpaint/PKGBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/community/mtpaint/PKGBUILD b/community/mtpaint/PKGBUILD
index 12fa8741e..3e4f4886b 100644
--- a/community/mtpaint/PKGBUILD
+++ b/community/mtpaint/PKGBUILD
@@ -1,19 +1,19 @@
-# $Id: PKGBUILD 96739 2013-09-03 19:46:20Z arodseth $
+# $Id: PKGBUILD 96840 2013-09-06 11:15:47Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Roman Kyrylych <roman@archlinux.org>
# Contributor: yosh64 <yosh64.at.gmail.dot.com>
pkgname=mtpaint
pkgver=3.40
-pkgrel=12
+pkgrel=13
pkgdesc='Simple paint program for creating icons and pixel based artwork'
arch=('i686' 'x86_64' 'mips64el')
url='http://mtpaint.sourceforge.net/'
license=('GPL3')
depends=('gtk2' 'giflib' 'libjpeg' 'openjpeg' 'desktop-file-utils' 'lcms2'
- 'jasper' 'libtiff' 'libpng' 'freetype2')
-makedepends=('gtk2' 'giflib' 'libjpeg' 'openjpeg' 'lcms2' 'jasper' 'libtiff'
- 'libpng' 'freetype2')
+ 'libtiff' 'libpng' 'freetype2')
+makedepends=('gtk2' 'giflib' 'libjpeg' 'openjpeg' 'lcms2' 'libtiff' 'libpng'
+ 'freetype2')
install='mtpaint.install'
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2")
sha256sums=('ef321d2b404839c7b909bdf5283eb22a37fbdd35b4cc9e380ddc400573d7c890')
@@ -21,6 +21,10 @@ sha256sums=('ef321d2b404839c7b909bdf5283eb22a37fbdd35b4cc9e380ddc400573d7c890')
prepare() {
cd "$pkgname-$pkgver"
+ # Recommended by Mark Tyler himself
+ sed -i 's:$LIBS $LDFLAGS:$LDFLAGS $LIBS:' configure
+
+ # Needed for giflib 5. Not needed for mtpaint>3.40.
sed -i 's:EGifOpenFileName(file_name, FALSE):EGifOpenFileName(file_name, FALSE, NULL):' src/png.c
sed -i 's:DGifOpenFileName(file_name):DGifOpenFileName(file_name, NULL):g' src/png.c
sed -i 's:MakeMapObject(:GifMakeMapObject(:g' src/png.c