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

Evangelos Foutras foutrelis at nymeria.archlinux.org
Mon May 20 17:46:29 EDT 2013


    Date: Monday, May 20, 2013 @ 23:46:29
  Author: foutrelis
Revision: 186067

upgpkg: licq 1.7.1-4

Fix invalid PNG images to work with libpng 1.6.

Modified:
  licq/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-20 20:18:21 UTC (rev 186066)
+++ PKGBUILD	2013-05-20 21:46:29 UTC (rev 186067)
@@ -3,30 +3,37 @@
 
 pkgname=licq
 pkgver=1.7.1
-pkgrel=3
-pkgdesc="Advanced graphical ICQ clone and more for Unix" 
+pkgrel=4
+pkgdesc="Advanced graphical ICQ clone and more for Unix"
 arch=('i686' 'x86_64')
 url="http://www.licq.org"
 license=('GPL')
 depends=('boost-libs' 'gpgme' 'libxss' 'qt4')
-makedepends=('cmake' 'boost')
+makedepends=('cmake' 'boost' 'optipng')
 options=('!libtool')
 source=(http://downloads.sourceforge.net/sourceforge/licq/licq-${pkgver}.tar.bz2)
 md5sums=('701e57efedc2b7ece64c3d2d2e9f9e16')
 
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  mkdir {,plugins/qt4-gui/}build
+
+  # Fix invalid PNG images to work with libpng 1.6
+  # https://github.com/licq-im/licq/pull/32
+  optipng -quiet -force -fix plugins/qt4-gui/share/skins/Mirabilis/*.png
+}
+
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
 
   # licq
-  mkdir build
   cd build
   cmake -DCMAKE_INSTALL_PREFIX=/usr  ..
   make
 
   # qt4-gui
-  cd ../plugins/qt4-gui
-  mkdir build
-  cd build
+  cd ../plugins/qt4-gui/build
   cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_MODULE_PATH="${srcdir}/${pkgname}-${pkgver}/cmake"  ..
   make
 }



More information about the arch-commits mailing list