From fd8249d016683ade99a23251d6ffdf5d5a3e76a4 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 6 Apr 2013 00:05:46 -0700 Subject: Sat Apr 6 00:05:46 PDT 2013 --- community/pokerth/PKGBUILD | 13 ++++++++----- community/pokerth/pokerth_game.pro.patch | 18 ++++++++++++++++++ 2 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 community/pokerth/pokerth_game.pro.patch (limited to 'community/pokerth') diff --git a/community/pokerth/PKGBUILD b/community/pokerth/PKGBUILD index 1c85368b1..3b544b250 100644 --- a/community/pokerth/PKGBUILD +++ b/community/pokerth/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 87277 2013-03-29 18:53:13Z cinelli $ +# $Id: PKGBUILD 87656 2013-04-05 07:06:16Z cinelli $ # Maintainer: Mateusz Herych # Maintainer: Bartłomiej Piotrowski # Contributor: Vasco Costa @@ -7,7 +7,7 @@ pkgname=pokerth _realname=PokerTH pkgver=1.0 -pkgrel=5 +pkgrel=6 pkgdesc="Poker game written in C++/QT4" arch=('i686' 'x86_64') url="http://www.pokerth.net/" @@ -15,14 +15,17 @@ license=('GPL' 'custom') depends=('curl' 'boost-libs' 'gsasl' 'gnutls' 'protobuf' 'qt4' 'sdl_mixer' 'libircclient' 'tinyxml') makedepends=('boost') -source=(http://downloads.sourceforge.net/sourceforge/pokerth/$_realname-$pkgver-src.tar.bz2) -md5sums=('1d8686b8968475cfc76e873a17a53efc') +source=("http://downloads.sourceforge.net/sourceforge/pokerth/$_realname-$pkgver-src.tar.bz2" + "pokerth_game.pro.patch") +md5sums=('1d8686b8968475cfc76e873a17a53efc' + '967b79b37407be5a68e6a864c2b7828a') build() { cd "$srcdir/$_realname-$pkgver-src" sed -i '31 i #include ' src/net/common/ircthread.cpp - + + patch -Np2 < "$srcdir/pokerth_game.pro.patch" qmake-qt4 "$pkgname.pro" make } diff --git a/community/pokerth/pokerth_game.pro.patch b/community/pokerth/pokerth_game.pro.patch new file mode 100644 index 000000000..e19ba3bcb --- /dev/null +++ b/community/pokerth/pokerth_game.pro.patch @@ -0,0 +1,18 @@ +--- src/PokerTH-1.0-src/pokerth_game.pro 2013-01-01 07:23:55.596627882 -0800 ++++ pokerth_game.pro 2013-04-04 11:14:16.583877931 -0700 +@@ -3,7 +3,6 @@ + isEmpty( PREFIX ){ + PREFIX =/usr + } +- + TEMPLATE = app + CODECFORSRC = UTF-8 + CONFIG += qt \ +@@ -21,6 +20,7 @@ + DEFINES += ENABLE_IPV6 TIXML_USE_STL BOOST_FILESYSTEM_DEPRECATED + DEFINES += PREFIX=\"$${PREFIX}\" + TARGET = pokerth ++QMAKE_MOC = $$QMAKE_MOC -DBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION + + # PRECOMPILED_HEADER = src/pch_game.h + -- cgit v1.2.3-54-g00ecf