desktop/pokerth/PKGBUILD
2015-08-09 13:54:58 +02:00

38 lines
1.2 KiB
Bash

# Maintainer: Daniele Cocca <daniele.cocca@gmail.com>
pkgname=pokerth
_realname=PokerTH
pkgver=1.1.1
pkgrel=6
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' 'qt' 'sdl_mixer' 'tinyxml' 'protobuf')
makedepends=('boost')
url="http://www.pokerth.net/"
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${_realname}-${pkgver}-src.tar.bz2")
md5sums=('a7f76f95782099f966e5f2b6809f502a')
build() {
cd "${srcdir}/${_realname}-${pkgver}-src"
qmake "${pkgname}.pro"
make
}
package() {
cd "${srcdir}/${_realname}-${pkgver}-src"
make INSTALL_ROOT="$pkgdir" install
# install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 docs/pokerth.1 "$pkgdir/usr/share/man/man1/pokerth.1"
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
# 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"
}