[arch-commits] Commit in licq/repos (6 files)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Fri Oct 7 19:31:12 UTC 2016


    Date: Friday, October 7, 2016 @ 19:31:11
  Author: bpiotrowski
Revision: 277903

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  licq/repos/staging-i686/
  licq/repos/staging-i686/PKGBUILD
    (from rev 277902, licq/trunk/PKGBUILD)
  licq/repos/staging-i686/licq-gcc6.patch
    (from rev 277902, licq/trunk/licq-gcc6.patch)
  licq/repos/staging-x86_64/
  licq/repos/staging-x86_64/PKGBUILD
    (from rev 277902, licq/trunk/PKGBUILD)
  licq/repos/staging-x86_64/licq-gcc6.patch
    (from rev 277902, licq/trunk/licq-gcc6.patch)

--------------------------------+
 staging-i686/PKGBUILD          |   49 +++++++++++++++++++++++++++++++++++++++
 staging-i686/licq-gcc6.patch   |   24 +++++++++++++++++++
 staging-x86_64/PKGBUILD        |   49 +++++++++++++++++++++++++++++++++++++++
 staging-x86_64/licq-gcc6.patch |   24 +++++++++++++++++++
 4 files changed, 146 insertions(+)

Copied: licq/repos/staging-i686/PKGBUILD (from rev 277902, licq/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2016-10-07 19:31:11 UTC (rev 277903)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Juergen Hoetzel <juergen at archlinux.org>
+
+pkgname=licq
+pkgver=1.8.2
+pkgrel=12
+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' 'optipng')
+source=(http://downloads.sourceforge.net/sourceforge/licq/licq-${pkgver}.tar.bz2 licq-gcc6.patch)
+md5sums=('46af2bc95865ee61a103d27812fe6e6a'
+         '8af303d8d31573246470f0ba0ccba428')
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  mkdir 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
+
+  # Fix build with GCC 6
+  patch -p1 -i ../licq-gcc6.patch
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  local licq_plugins="auto-reply icq rms msn qt4-gui" # osd jabber aosd
+  
+  local plugins="" _plugin
+  for _plugin in ${licq_plugins}; do
+    plugins+=" ${_plugin}\/CMakeLists.txt"
+  done
+  sed -i -e "s/file(GLOB cmake_plugins.*$/set(cmake_plugins ${plugins})/" plugins/CMakeLists.txt
+
+  cd build
+  cmake -DCMAKE_INSTALL_PREFIX=/usr -DUSE_FIFO=ON -DBUILD_PLUGINS=ON -DBUILD_TESTS=OFF ..
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}/build"
+  make DESTDIR="${pkgdir}" install
+}

Copied: licq/repos/staging-i686/licq-gcc6.patch (from rev 277902, licq/trunk/licq-gcc6.patch)
===================================================================
--- staging-i686/licq-gcc6.patch	                        (rev 0)
+++ staging-i686/licq-gcc6.patch	2016-10-07 19:31:11 UTC (rev 277903)
@@ -0,0 +1,24 @@
+--- licq-1.8.2/src/licq.cpp.orig	2016-05-12 15:27:35.927500283 +0000
++++ licq-1.8.2/src/licq.cpp	2016-05-12 15:28:01.107415744 +0000
+@@ -568,18 +568,18 @@
+         if (!licqConf.get(szKey, pluginName))
+           continue;
+ 
+-        bool loaded = LoadPlugin(pluginName, argc, argv);
++        bool loaded= (bool)LoadPlugin(pluginName, argc, argv);
+ 
+         // Make upgrade from 1.3.x and older easier by automatically switching from kde/qt-gui to kde4/qt4-gui
+         if (!loaded && pluginName == "kde-gui")
+         {
+           gLog.warning(tr("Plugin kde-gui is no longer available, trying to load kde4-gui instead."));
+-          loaded = LoadPlugin("kde4-gui", argc, argv);
++          loaded= (bool)LoadPlugin("kde4-gui", argc, argv);
+         }
+         if (!loaded && (pluginName == "qt-gui" || pluginName == "kde-gui"))
+         {
+           gLog.warning(tr("Plugin %s is no longer available, trying to load qt4-gui instead."), pluginName.c_str());
+-          loaded = LoadPlugin("qt4-gui", argc, argv);
++          loaded= (bool)LoadPlugin("qt4-gui", argc, argv);
+         }
+ 
+         if (!loaded)

Copied: licq/repos/staging-x86_64/PKGBUILD (from rev 277902, licq/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2016-10-07 19:31:11 UTC (rev 277903)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Juergen Hoetzel <juergen at archlinux.org>
+
+pkgname=licq
+pkgver=1.8.2
+pkgrel=12
+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' 'optipng')
+source=(http://downloads.sourceforge.net/sourceforge/licq/licq-${pkgver}.tar.bz2 licq-gcc6.patch)
+md5sums=('46af2bc95865ee61a103d27812fe6e6a'
+         '8af303d8d31573246470f0ba0ccba428')
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  mkdir 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
+
+  # Fix build with GCC 6
+  patch -p1 -i ../licq-gcc6.patch
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  local licq_plugins="auto-reply icq rms msn qt4-gui" # osd jabber aosd
+  
+  local plugins="" _plugin
+  for _plugin in ${licq_plugins}; do
+    plugins+=" ${_plugin}\/CMakeLists.txt"
+  done
+  sed -i -e "s/file(GLOB cmake_plugins.*$/set(cmake_plugins ${plugins})/" plugins/CMakeLists.txt
+
+  cd build
+  cmake -DCMAKE_INSTALL_PREFIX=/usr -DUSE_FIFO=ON -DBUILD_PLUGINS=ON -DBUILD_TESTS=OFF ..
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}/build"
+  make DESTDIR="${pkgdir}" install
+}

Copied: licq/repos/staging-x86_64/licq-gcc6.patch (from rev 277902, licq/trunk/licq-gcc6.patch)
===================================================================
--- staging-x86_64/licq-gcc6.patch	                        (rev 0)
+++ staging-x86_64/licq-gcc6.patch	2016-10-07 19:31:11 UTC (rev 277903)
@@ -0,0 +1,24 @@
+--- licq-1.8.2/src/licq.cpp.orig	2016-05-12 15:27:35.927500283 +0000
++++ licq-1.8.2/src/licq.cpp	2016-05-12 15:28:01.107415744 +0000
+@@ -568,18 +568,18 @@
+         if (!licqConf.get(szKey, pluginName))
+           continue;
+ 
+-        bool loaded = LoadPlugin(pluginName, argc, argv);
++        bool loaded= (bool)LoadPlugin(pluginName, argc, argv);
+ 
+         // Make upgrade from 1.3.x and older easier by automatically switching from kde/qt-gui to kde4/qt4-gui
+         if (!loaded && pluginName == "kde-gui")
+         {
+           gLog.warning(tr("Plugin kde-gui is no longer available, trying to load kde4-gui instead."));
+-          loaded = LoadPlugin("kde4-gui", argc, argv);
++          loaded= (bool)LoadPlugin("kde4-gui", argc, argv);
+         }
+         if (!loaded && (pluginName == "qt-gui" || pluginName == "kde-gui"))
+         {
+           gLog.warning(tr("Plugin %s is no longer available, trying to load qt4-gui instead."), pluginName.c_str());
+-          loaded = LoadPlugin("qt4-gui", argc, argv);
++          loaded= (bool)LoadPlugin("qt4-gui", argc, argv);
+         }
+ 
+         if (!loaded)



More information about the arch-commits mailing list