# $Id: PKGBUILD 87656 2013-04-05 07:06:16Z cinelli $ # Maintainer: Mateusz Herych # Maintainer: Bartłomiej Piotrowski # Contributor: Vasco Costa # Contributor: Federico Cinelli pkgname=pokerth _realname=PokerTH pkgver=1.0 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' 'gsasl' 'gnutls' 'protobuf' 'qt4' 'sdl_mixer' 'libircclient' 'tinyxml') makedepends=('boost') 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 } package() { cd "$srcdir/$_realname-$pkgver-src" make INSTALL_ROOT="$pkgdir" install install -Dm644 "docs/pokerth.1" "$pkgdir/usr/share/man/man1/pokerth.1" install -Dm644 "data/data-copyright.txt" "$pkgdir/usr/share/licenses/pokerth/data-copyright.txt" }