[arch-commits] Commit in tuxpaint/trunk (PKGBUILD)

Alexander Rødseth arodseth at nymeria.archlinux.org
Sun May 19 11:23:08 UTC 2013


    Date: Sunday, May 19, 2013 @ 13:23:07
  Author: arodseth
Revision: 91095

libpng16 fix

Modified:
  tuxpaint/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-19 11:05:03 UTC (rev 91094)
+++ PKGBUILD	2013-05-19 11:23:07 UTC (rev 91095)
@@ -6,7 +6,7 @@
 
 pkgname=tuxpaint
 pkgver=0.9.21
-pkgrel=9
+pkgrel=10
 pkgdesc='Drawing program designed for young children'
 arch=('x86_64' 'i686')
 url='http://www.tuxpaint.org/'
@@ -14,7 +14,7 @@
 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"
@@ -25,15 +25,20 @@
 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() {




More information about the arch-commits mailing list