summaryrefslogtreecommitdiff
path: root/community/pokerth/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/pokerth/PKGBUILD')
-rw-r--r--community/pokerth/PKGBUILD15
1 files changed, 11 insertions, 4 deletions
diff --git a/community/pokerth/PKGBUILD b/community/pokerth/PKGBUILD
index e34e02601..cc4df5fca 100644
--- a/community/pokerth/PKGBUILD
+++ b/community/pokerth/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 45135 2011-04-17 08:17:41Z tdziedzic $
+# $Id: PKGBUILD 47635 2011-05-24 14:23:55Z tdziedzic $
# Maintainer: Mateusz Herych <heniekk@gmail.com>
# Contributor: Vasco Costa <vasco.costa@meiodigital.com>
pkgname=pokerth
_realname=PokerTH
pkgver=0.8.3
-pkgrel=3
+pkgrel=4
pkgdesc="Poker game written in C++/QT4"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.pokerth.net/"
@@ -16,16 +16,23 @@ source=(http://downloads.sourceforge.net/sourceforge/pokerth/$_realname-$pkgver-
md5sums=('adbe56ad5f547eb255dad91de564bf1c')
build() {
- cd "$srcdir/$_realname-$pkgver-src"
+ cd $_realname-$pkgver-src
sed -i 's/QMAKE_CXXFLAGS += -std=gnu++0x/QMAKE_CXXFLAGS += -std=gnu++0x -DBOOST_FILESYSTEM_VERSION=2/' *.pro
+
+ # fix g++: error: unrecognized option '-no_dead_strip_inits_and_terms'
+ sed \
+ -e 's/QMAKE_LFLAGS += -no_dead_strip_inits_and_terms//' \
+ -i zlib_compress.pro pokerth_game.pro pokerth_server.pro
+
qmake $pkgname.pro
+
make
}
package() {
- cd "$srcdir/$_realname-$pkgver-src"
+ cd $_realname-$pkgver-src
make INSTALL_ROOT="$pkgdir" install