desktop/pokerth/PKGBUILD

50 lines
1.7 KiB
Bash
Raw Normal View History

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Daniele Cocca <daniele.cocca@gmail.com>
pkgname=pokerth
2011-07-10 01:45:56 +08:00
_realname=PokerTH
2012-02-22 20:13:31 +08:00
pkgver=0.9.3
pkgrel=1
pkgdesc="PokerTH is a Texas Holdem poker game written in C++/Qt."
arch=('i686' 'x86_64')
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')
makedepends=('boost')
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')
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
}
package() {
2011-07-10 01:45:56 +08:00
cd "${srcdir}/${_realname}-${pkgver}-src"
make INSTALL_ROOT="${pkgdir}" install
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"
}