mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
47 lines
1.7 KiB
Bash
47 lines
1.7 KiB
Bash
# Maintainer: Daniele Cocca <daniele.cocca@gmail.com>
|
|
|
|
pkgname=pokerth
|
|
pkgver=1.1.2
|
|
pkgrel=2
|
|
pkgdesc="PokerTH is a Texas Holdem poker game written in C++/Qt."
|
|
arch=('x86_64')
|
|
license=('AGPL3' 'custom:Variety of FOSS licenses for data files')
|
|
depends=('boost-libs' 'curl' 'gnutls' 'libgsasl' 'libircclient' 'qt5-base' 'sdl_mixer' 'tinyxml' 'protobuf')
|
|
makedepends=('boost')
|
|
url="http://www.pokerth.net/"
|
|
source=(https://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz
|
|
${pkgname}-${pkgver}.patch)
|
|
md5sums=('8fd7d7fc7ece17315e58aa3240dd4586'
|
|
'0ef5541fc6008dfb2521dcab47afb659')
|
|
|
|
prepare() {
|
|
cd "$srcdir/$pkgname-$pkgver-rc"
|
|
|
|
# ---< required for v1.1.2 >--------------------------------------------------
|
|
# these changes should be incorporated in next release ~feb-2018
|
|
patch -Np1 -i "${srcdir}/pokerth-1.1.2.patch"
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# good idea to do this at all times
|
|
protoc -I=$srcdir/$pkgname-$pkgver-rc/ --cpp_out=$srcdir/$pkgname-$pkgver-rc/src/third_party/protobuf/ $srcdir/$pkgname-$pkgver-rc/pokerth.proto $srcdir/$pkgname-$pkgver-rc/chatcleaner.proto
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}-rc"
|
|
|
|
# QMAKE_CFLAGS_ISYSTEM workaround to prevent generation of "-isystem /usr/include"
|
|
qmake-qt5 CONFIG+="client" QMAKE_CFLAGS_ISYSTEM= -spec linux-g++ ${pkgname}.pro
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}-rc"
|
|
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
|
|
install -D pokerth "$pkgdir/usr/bin/pokerth"
|
|
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"
|
|
}
|