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

Evangelos Foutras foutrelis at nymeria.archlinux.org
Fri May 3 06:18:58 EDT 2013


    Date: Friday, May 3, 2013 @ 12:18:58
  Author: foutrelis
Revision: 184185

upgpkg: smplayer 0.8.4-2

Fix invalid PNG icons to work with libpng 1.6.

Modified:
  smplayer/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-03 08:59:30 UTC (rev 184184)
+++ PKGBUILD	2013-05-03 10:18:58 UTC (rev 184185)
@@ -6,16 +6,25 @@
 
 pkgname=smplayer
 pkgver=0.8.4
-pkgrel=1
+pkgrel=2
 pkgdesc="A complete front-end for MPlayer"
 arch=('i686' 'x86_64')
 url="http://smplayer.sourceforge.net/"
 license=('GPL')
 depends=('qt4' 'mplayer')
+makedepends=('optipng')
 install=smplayer.install
 source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
 md5sums=('4691b569c4209d7e5a2c1386d9319881')
 
+prepare() {
+  cd "$pkgname-$pkgver"
+
+  # Fix invalid PNG icons to work with libpng 1.6
+  # http://sourceforge.net/p/smplayer/bugs/571/
+  find -name '*.png' -exec optipng -quiet -force -fix {} +
+}
+
 build() {
   cd "$pkgname-$pkgver"
   sed -i 's:#\(DEFINES += NO_DEBUG_ON_CONSOLE\):\1:' src/smplayer.pro



More information about the arch-commits mailing list