From 83c3c42a38bda36bdc56d594318958bc4cfd9b32 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 28 Nov 2011 23:14:56 +0000 Subject: Mon Nov 28 23:14:56 UTC 2011 --- community-staging/pokerth/PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 community-staging/pokerth/PKGBUILD (limited to 'community-staging/pokerth') diff --git a/community-staging/pokerth/PKGBUILD b/community-staging/pokerth/PKGBUILD new file mode 100644 index 000000000..54dd65ded --- /dev/null +++ b/community-staging/pokerth/PKGBUILD @@ -0,0 +1,44 @@ +# $Id: PKGBUILD 59530 2011-11-27 19:00:09Z spupykin $ +# Maintainer: Mateusz Herych +# Contributor: Vasco Costa + +pkgname=pokerth +_realname=PokerTH +pkgver=0.8.3 +pkgrel=6 +pkgdesc="Poker game written in C++/QT4" +arch=('i686' 'x86_64') +url="http://www.pokerth.net/" +license=('GPL' 'custom') +depends=('curl' 'boost-libs>=1.43.0' 'gsasl' 'gnutls' 'qt' 'sdl_mixer') +makedepends=('boost') +source=(http://downloads.sourceforge.net/sourceforge/pokerth/$_realname-$pkgver-src.tar.bz2) +md5sums=('adbe56ad5f547eb255dad91de564bf1c') + +build() { + 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 $_realname-$pkgver-src + + make INSTALL_ROOT="$pkgdir" install + + install -D $pkgname "$pkgdir/usr/bin/$pkgname" + install -D -m644 docs/pokerth.1 "$pkgdir/usr/share/man/man1/pokerth.1" + + install -D -m644 data/data-copyright.txt "$pkgdir/usr/share/licenses/pokerth/data-copyright.txt" + rm -f "$pkgdir/usr/share/pokerth/data/data-copyright.txt" +} -- cgit v1.2.3-54-g00ecf