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

Evangelos Foutras foutrelis at nymeria.archlinux.org
Sat May 4 15:06:36 EDT 2013


    Date: Saturday, May 4, 2013 @ 21:06:36
  Author: foutrelis
Revision: 184236

upgpkg: smplayer-themes 20120919-3

Fix invalid PNG icons to work with libpng 1.6.

Modified:
  smplayer-themes/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-04 18:49:04 UTC (rev 184235)
+++ PKGBUILD	2013-05-04 19:06:36 UTC (rev 184236)
@@ -1,19 +1,27 @@
 # $Id$
-# Maintainer: 
+# Maintainer:
 # Contributor: Alessio 'mOLOk' Bolognino <themolok at gmail.com>
 
 pkgname=smplayer-themes
 pkgver=20120919
-pkgrel=2
+pkgrel=3
 pkgdesc="Themes for smplayer"
 arch=('any')
 url="http://smplayer.sourceforge.net/"
 license=('GPL')
 depends=('smplayer')
+makedepends=('optipng')
 source=(http://downloads.sourceforge.net/smplayer/$pkgname-$pkgver.tar.bz2)
 md5sums=('4af3433f2fc7a4b543e576fb7985eb35')
 
+prepare() {
+  cd $pkgname-$pkgver
+
+  # Fix invalid PNG icons to work with libpng 1.6
+  find -name '*.png' -exec optipng -quiet -force -fix {} +
+}
+
 package() {
-     cd $pkgname-$pkgver
-     make PREFIX="$pkgdir/usr" install
+  cd $pkgname-$pkgver
+  make PREFIX="$pkgdir/usr" install
 }



More information about the arch-commits mailing list