summaryrefslogtreecommitdiff
path: root/community/pokerth
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-04-06 00:05:46 -0700
committerroot <root@rshg054.dnsready.net>2013-04-06 00:05:46 -0700
commitfd8249d016683ade99a23251d6ffdf5d5a3e76a4 (patch)
treede9e45e44e9a8ffb85bd8895dcec0ebcd34d17e3 /community/pokerth
parent3c7a59bfd2b8340068df7dc196e0c9b612b9ef31 (diff)
Sat Apr 6 00:05:46 PDT 2013
Diffstat (limited to 'community/pokerth')
-rw-r--r--community/pokerth/PKGBUILD13
-rw-r--r--community/pokerth/pokerth_game.pro.patch18
2 files changed, 26 insertions, 5 deletions
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 <heniekk@gmail.com>
# Maintainer: Bartłomiej Piotrowski <barthalion@gmail.com>
# Contributor: Vasco Costa <vasco.costa@meiodigital.com>
@@ -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 <libircclient/libirc_rfcnumeric.h>' 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
+