desktop/pokerth/PKGBUILD

61 lines
2.0 KiB
Bash
Raw Normal View History

# Maintainer: Daniele Cocca <daniele.cocca@gmail.com>
pkgname=pokerth
2011-07-10 01:45:56 +08:00
_realname=PokerTH
2014-02-01 04:52:02 +08:00
pkgver=1.1.1
pkgrel=10
pkgdesc="PokerTH is a Texas Holdem poker game written in C++/Qt."
2013-03-06 04:55:48 +08:00
arch=('x86_64')
license=('AGPL3' 'custom:Variety of FOSS licenses for data files')
2013-03-06 04:55:48 +08:00
depends=('boost-libs' 'curl' 'gnutls' 'libgsasl' 'libircclient' 'qt' 'sdl_mixer' 'tinyxml' 'protobuf')
makedepends=('boost')
url="http://www.pokerth.net/"
2016-03-16 06:09:09 +08:00
source=("http://downloads.sourceforge.net/sourceforge/pokerth/$_realname-$pkgver-src.tar.bz2"
'0001-Qt-5.5.0-patch-for-qtsingleapplication.patch'
'pokerth-1.1.1-Qualify-std-ifstream-and-std-ofstream.patch'
'pokerth-gcc6.patch'
'pokerth-c++11.patch')
2016-03-16 06:09:09 +08:00
md5sums=('a7f76f95782099f966e5f2b6809f502a'
'f4ecab0a6435f1b3b0654145b75d6e7c'
'26b02c7e5c50484485570ace9b63be5b'
'39070e7d656ae654e54ec9e25f9eea83'
'ee027e6bd85d245f6f3ae74c68ed91cb')
2016-03-16 06:09:09 +08:00
prepare() {
cd "$srcdir/$_realname-$pkgver-src"
# https://github.com/pokerth/pokerth/commit/731f5f05f540
patch -Np1 -i ../0001-Qt-5.5.0-patch-for-qtsingleapplication.patch
# https://github.com/pokerth/pokerth/commit/69f820bb3
patch -p1 -i ../pokerth-1.1.1-Qualify-std-ifstream-and-std-ofstream.patch
# Fix build with GCC 6
patch -p1 -i ../pokerth-gcc6.patch
patch -p1 -i ../pokerth-c++11.patch
2016-03-16 06:09:09 +08:00
}
build() {
2011-07-10 01:45:56 +08:00
cd "${srcdir}/${_realname}-${pkgver}-src"
qmake "${pkgname}.pro"
make
}
package() {
2011-07-10 01:45:56 +08:00
cd "${srcdir}/${_realname}-${pkgver}-src"
2014-06-12 00:13:12 +08:00
make INSTALL_ROOT="$pkgdir" install
2014-06-12 00:13:12 +08:00
# install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 docs/pokerth.1 "$pkgdir/usr/share/man/man1/pokerth.1"
2011-07-10 01:45:56 +08:00
2014-06-12 00:13:12 +08:00
install -Dm644 data/data-copyright.txt "$pkgdir/usr/share/licenses/pokerth/data-copyright.txt"
# rm -f "$pkgdir/usr/share/pokerth/data/data-copyright.txt"
# install server
2014-06-12 00:13:12 +08:00
# install -Dm755 bin/$pkgname_server "$pkgdir/usr/bin/${pkgname}_server"
install -Dm644 docs/server_setup_howto.txt "$pkgdir/usr/share/doc/${pkgname}/server_setup_howto.txt"
}