summaryrefslogtreecommitdiff
path: root/community/tuxpaint
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-20 00:57:43 -0700
committerroot <root@rshg054.dnsready.net>2013-05-20 00:57:43 -0700
commit383955a81810f344e11b1472bd4c5069fa77020c (patch)
tree6017ed943ee9ae2ca0da830ede5f00f6d7817cf7 /community/tuxpaint
parent9a30c3d0083b8330b1aa6c0f89245e68ae762ee5 (diff)
Mon May 20 00:57:42 PDT 2013
Diffstat (limited to 'community/tuxpaint')
-rw-r--r--community/tuxpaint/PKGBUILD22
1 files changed, 16 insertions, 6 deletions
diff --git a/community/tuxpaint/PKGBUILD b/community/tuxpaint/PKGBUILD
index 0e5b9d335..f83770517 100644
--- a/community/tuxpaint/PKGBUILD
+++ b/community/tuxpaint/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 90097 2013-05-06 19:39:46Z foutrelis $
+# $Id: PKGBUILD 91097 2013-05-19 11:35:37Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Mateusz Herych <heniekk@gmail.com>
# Contributor: Sergio Jovani Guzman <moret.sjg@gmail.com>
@@ -6,7 +6,7 @@
pkgname=tuxpaint
pkgver=0.9.21
-pkgrel=8
+pkgrel=9
pkgdesc='Drawing program designed for young children'
arch=('x86_64' 'i686')
url='http://www.tuxpaint.org/'
@@ -14,7 +14,7 @@ license=('GPL')
backup=('etc/tuxpaint/tuxpaint.conf')
depends=('python2' 'fribidi' 'sdl_ttf' 'sdl_mixer' 'sdl_image' 'sdl_pango'
'libpaper' 'librsvg')
-makedepends=('setconf')
+makedepends=('setconf' 'optipng')
optdepends=('tuxpaint-stamps: more stamps'
'tuxpaint-conf: configuration manager')
source=("http://downloads.sourceforge.net/sourceforge/tuxpaint/$pkgname-$pkgver.tar.gz"
@@ -22,18 +22,28 @@ source=("http://downloads.sourceforge.net/sourceforge/tuxpaint/$pkgname-$pkgver.
sha256sums=('6d4f2b981643b5c937708e5e6cdaf318ae7b5562375327b4b1cb84611e65ede9'
'6d572467fce710c9323ba53bb3309eb7ed1401b4fee2c1f56533e871558a7f20')
-build() {
+prepare() {
cd "$srcdir/$pkgname-$pkgver"
+ setconf src/tuxpaint.desktop Categories 'Game;KidsGame;Graphics;RasterGraphics;'
+ sed -i 's:# fu:fu:' src/tuxpaint.conf
+
# python2 fix
for f in docs/zh_tw/mkTuxpaintIM.py fonts/locale/zh_tw_docs/maketuxfont.py; do
sed -i '0,/on/s//on2/' $f
done
+ # libpng15 fix
patch -p0 -i ../tuxpaint-0.9.21-libpng1.5.patch
sed -i 's:$(ARCH_LINKS):$(ARCH_LINKS) -lpng:' Makefile
- setconf src/tuxpaint.desktop Categories 'Game;KidsGame;Graphics;RasterGraphics;'
- sed -i 's:# fu:fu:' src/tuxpaint.conf
+
+ # libpng16 fix
+ find -name '*.png' -exec optipng -quiet -force -fix {} +
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
make PREFIX=/usr
}