Commit 74f67897 authored by Daniele Cocca's avatar Daniele Cocca

Backporting pokerth from testing.

parent fefc9c67
......@@ -6,29 +6,42 @@
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
_pkgname=PokerTH
_pkgver=0.8.3
pkgname=pokerth
pkgver=0.8.3.1
pkgrel=3.1
_realname=PokerTH
pkgver=0.8.3
pkgrel=4
pkgdesc="PokerTH is a Texas Holdem poker game written in C++/Qt."
arch=('i686' 'x86_64')
license=('GPL' 'custom')
depends=('qt>=4.4.3' 'zlib>=1.2.3' 'curl>=7.1.6' 'gnutls>=2.2.2' 'libgsasl' 'boost>=1.36' 'sdl' 'sdl_mixer' 'icu')
depends=('qt' 'zlib' 'curl' 'gnutls' 'libgsasl' 'sdl' 'sdl_mixer' 'icu' 'boost' 'boost-libs')
makedepends=('boost' 'boost-libs')
url="http://www.pokerth.net/"
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${_pkgname}-${_pkgver}-src.tar.bz2")
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${_realname}-${pkgver}-src.tar.bz2")
md5sums=('adbe56ad5f547eb255dad91de564bf1c')
build() {
cd "${srcdir}/${_pkgname}-${_pkgver}-src"
qmake pokerth.pro || return 1
make || return 1
cd "${srcdir}/${_realname}-${pkgver}-src"
sed -i 's/QMAKE_CXXFLAGS += -std=gnu++0x/QMAKE_CXXFLAGS += -std=gnu++0x -DBOOST_FILESYSTEM_VERSION=2/' *.pro
# 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() {
cd "${srcdir}/${_pkgname}-${_pkgver}-src"
make INSTALL_ROOT="${pkgdir}" install || return 1
cd "${srcdir}/${_realname}-${pkgver}-src"
make INSTALL_ROOT="${pkgdir}" install
install -D -m755 pokerth "${pkgdir}/usr/bin/pokerth" || return 1
install -D -m644 docs/pokerth.1 "${pkgdir}/usr/share/man/man1/pokerth.1" || return 1
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"
}
# vim:set ts=2 sw=2 et:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment