2011-01-09 09:10:01 +08:00
|
|
|
#
|
|
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# Maintainer: Daniele Cocca <daniele.cocca@gmail.com>
|
|
|
|
|
2011-07-09 07:25:18 +08:00
|
|
|
pkgname=pokerth
|
2011-07-10 01:45:56 +08:00
|
|
|
_realname=PokerTH
|
2012-02-22 20:13:31 +08:00
|
|
|
pkgver=0.9.3
|
2012-01-22 16:13:35 +08:00
|
|
|
pkgrel=1
|
2011-01-09 09:10:01 +08:00
|
|
|
pkgdesc="PokerTH is a Texas Holdem poker game written in C++/Qt."
|
|
|
|
arch=('i686' 'x86_64')
|
2012-01-22 16:13:35 +08:00
|
|
|
license=('AGPL3' 'custom:Variety of FOSS licenses for data files')
|
2012-02-22 20:13:31 +08:00
|
|
|
depends=('boost-libs' 'curl' 'gnutls' 'libgsasl' 'libircclient' 'qt' 'sdl_mixer' 'tinyxml')
|
2012-01-22 16:13:35 +08:00
|
|
|
makedepends=('boost')
|
2011-01-09 09:10:01 +08:00
|
|
|
url="http://www.pokerth.net/"
|
2011-07-10 01:45:56 +08:00
|
|
|
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${_realname}-${pkgver}-src.tar.bz2")
|
2012-02-22 20:13:31 +08:00
|
|
|
md5sums=('09d173512f723441f288b2844e3c68cb')
|
2011-01-09 09:10:01 +08:00
|
|
|
|
|
|
|
build() {
|
2011-07-10 01:45:56 +08:00
|
|
|
cd "${srcdir}/${_realname}-${pkgver}-src"
|
|
|
|
|
|
|
|
sed -i 's/QMAKE_CXXFLAGS += -std=gnu++0x/QMAKE_CXXFLAGS += -std=gnu++0x -DBOOST_FILESYSTEM_VERSION=2/' *.pro
|
|
|
|
|
2012-02-22 20:13:31 +08:00
|
|
|
sed -i '23 i #include <libircclient/libirc_rfcnumeric.h>' src/net/common/ircthread.cpp
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2011-07-10 01:45:56 +08:00
|
|
|
# Chakra look & feel tweaks
|
|
|
|
sed -i -e "s~a.setStyle(new QPlastiqueStyle);~//~g" src/pokerth.cpp
|
|
|
|
sed -i -e "s~a.setStyleSheet(font1String +~a.setStyleSheet(~g" src/pokerth.cpp
|
|
|
|
|
|
|
|
qmake "${pkgname}.pro"
|
|
|
|
make
|
2011-01-09 09:10:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2011-07-10 01:45:56 +08:00
|
|
|
cd "${srcdir}/${_realname}-${pkgver}-src"
|
|
|
|
|
|
|
|
make INSTALL_ROOT="${pkgdir}" install
|
2011-01-09 09:10:01 +08:00
|
|
|
|
2011-07-10 01:45:56 +08:00
|
|
|
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"
|
2011-01-09 09:10:01 +08:00
|
|
|
}
|