diff --git a/extra/kdegames-ksirk/PKGBUILD b/extra/kdegames-ksirk/PKGBUILD new file mode 100644 index 000000000..8d669e184 --- /dev/null +++ b/extra/kdegames-ksirk/PKGBUILD @@ -0,0 +1,40 @@ +# $Id$ +# Maintainer: Felix Yan +# Contributor: Andrea Scarpino + +# ALARM: Kevin Mihelich +# - patch from Fedora to fix FTBFS on ARM + +pkgname=kdegames-ksirk +pkgver=16.04.1 +pkgrel=1 +pkgdesc="A computerized version of a well known strategy game" +url="http://kde.org/applications/games/ksirk/" +arch=('i686' 'x86_64') +license=('GPL' 'LGPL' 'FDL') +groups=('kde-applications' 'kdegames') +depends=('kdebase-runtime' 'libkdegames4') +makedepends=('cmake' 'automoc4') +source=("http://download.kde.org/stable/applications/${pkgver}/src/ksirk-${pkgver}.tar.xz" + 'ksirk-15.12.1-iris_base64.patch') +sha1sums=('1602813691396a10f08e6ff6da1e2e3e2e0c8ca9' + '78dbd3d4e70d2afb917ba86a6254a775de2bc2dd') + +prepare() { + patch -d ksirk-${pkgver} -p1 -i ../ksirk-15.12.1-iris_base64.patch +} + +build() { + mkdir -p build + cd build + cmake ../ksirk-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE4_BUILD_TESTS=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd build + make DESTDIR="${pkgdir}" install +} diff --git a/extra/kdegames-ksirk/ksirk-15.12.1-iris_base64.patch b/extra/kdegames-ksirk/ksirk-15.12.1-iris_base64.patch new file mode 100644 index 000000000..7578e92d9 --- /dev/null +++ b/extra/kdegames-ksirk/ksirk-15.12.1-iris_base64.patch @@ -0,0 +1,49 @@ +diff -up ksirk-15.12.1/ksirk/iris/src/CMakeLists.txt.iris_base64 ksirk-15.12.1/ksirk/iris/src/CMakeLists.txt +--- ksirk-15.12.1/ksirk/iris/src/CMakeLists.txt.iris_base64 2016-01-28 14:00:49.804584004 -0600 ++++ ksirk-15.12.1/ksirk/iris/src/CMakeLists.txt 2016-01-28 14:02:19.778300698 -0600 +@@ -29,7 +29,6 @@ set(libiris_SRCS + libidn/rfc3454.c + libidn/stringprep.c + xmpp/base/randomnumbergenerator.cpp +- xmpp/base64/base64.cpp + xmpp/cutestuff/bsocket.cpp + xmpp/cutestuff/bytestream.cpp + xmpp/cutestuff/httpconnect.cpp +@@ -104,7 +103,6 @@ irisnet/corelib/objectsession.h + irisnet/noncore/processquit.h + jdns/qjdns.h + xmpp/base/randrandomnumbergenerator.h +-xmpp/base64/base64.h + xmpp/cutestuff/bsocket.h + xmpp/cutestuff/bytestream.h + xmpp/cutestuff/httpconnect.h +diff -up ksirk-15.12.1/ksirk/iris/src/xmpp/modules.pri.iris_base64 ksirk-15.12.1/ksirk/iris/src/xmpp/modules.pri +--- ksirk-15.12.1/ksirk/iris/src/xmpp/modules.pri.iris_base64 2015-12-15 13:27:19.000000000 -0600 ++++ ksirk-15.12.1/ksirk/iris/src/xmpp/modules.pri 2016-01-28 14:00:49.808584036 -0600 +@@ -3,4 +3,4 @@ IRIS_XMPP_JID_MODULE = $$PWD/jid/jid.pri + IRIS_XMPP_SASL_MODULE = $$PWD/sasl/sasl.pri + IRIS_XMPP_BASE_MODULE = $$PWD/base/base.pri + IRIS_XMPP_ZLIB_MODULE = $$PWD/zlib/zlib.pri +-IRIS_XMPP_BASE64_MODULE = $$PWD/base64/base64.pri ++#IRIS_XMPP_BASE64_MODULE = $$PWD/base64/base64.pri +diff -up ksirk-15.12.1/ksirk/iris/src/xmpp/sasl/digestmd5response.cpp.iris_base64 ksirk-15.12.1/ksirk/iris/src/xmpp/sasl/digestmd5response.cpp +--- ksirk-15.12.1/ksirk/iris/src/xmpp/sasl/digestmd5response.cpp.iris_base64 2015-12-15 13:27:19.000000000 -0600 ++++ ksirk-15.12.1/ksirk/iris/src/xmpp/sasl/digestmd5response.cpp 2016-01-28 14:00:49.808584036 -0600 +@@ -11,7 +11,7 @@ + + #include "xmpp/sasl/digestmd5proplist.h" + #include "xmpp/base/randomnumbergenerator.h" +-#include "xmpp/base64/base64.h" ++//#include "xmpp/base64/base64.h" + + namespace XMPP { + +@@ -33,7 +33,7 @@ DIGESTMD5Response::DIGESTMD5Response(con + for(int n = 0; n < (int)a.size(); ++n) { + a[n] = (char) rand.generateNumberBetween(0, 255); + } +- QByteArray cnonce = Base64::encode(a).toLatin1(); ++ QByteArray cnonce = a.toBase64(); + + // make other variables + if (realm.isEmpty()) {