archrelease: copy trunk to community-any
[ArchLinux/community.git] / pokerth / trunk / PKGBUILD
blob48dd18b653724fe664ca03b04431d78c759afaea
1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 # Contributor: Mateusz Herych <heniekk@gmail.com>
3 # Contributor: BartÅ‚omiej Piotrowski <barthalion@gmail.com>
4 # Contributor: Vasco Costa <vasco.costa@meiodigital.com>
5 # Contributor: Federico Cinelli <cinelli@aur.archlinux.org>
7 pkgname=pokerth
8 pkgver=1.1.2
9 _pkgver=1.1.2-rc
10 pkgrel=1
11 pkgdesc="Open source Texas Hold'em Poker simulator"
12 arch=('x86_64')
13 url="http://www.pokerth.net/"
14 license=('GPL' 'custom')
15 depends=('curl' 'boost-libs' 'gsasl' 'gnutls' 'protobuf' 'libxkbcommon-x11'
16          'qt5-base' 'sdl_mixer' 'libircclient' 'tinyxml')
17 makedepends=('boost')
18 source=("https://downloads.sourceforge.net/project/pokerth/pokerth/$_pkgver/pokerth-$_pkgver.tar.gz"
19         pokerth-1.1.1-boost-1.65-ambiguous-advance.patch)
20 sha512sums=('d54c84f199636eb5a53580213e5e4ccc828cf565bf4b055797daa82e2ad54d8c52c7a16a781b82c8cc89d184a2b3c4105922394d08c7d2e06383b96963c36b5a'
21             'af91b98c04f844504c46b01c76a360d00bfe3993d6acdbc9800f2466833da42ad5e76a0ca3e197cb63aca10e4cb1eae73996b67691587eae2f2ee3975a33410e')
23 prepare() {
24   cd "$pkgname-$_pkgver"
26   patch -Np1 < "$srcdir"/pokerth-1.1.1-boost-1.65-ambiguous-advance.patch
29 build() {
30   cd "$pkgname-$_pkgver"
32   qmake-qt5 "$pkgname.pro" QMAKE_CFLAGS_ISYSTEM="" CONFIG+=client
33   make
36 package() {
37   cd "$pkgname-$_pkgver"
39   # The make install target doesn't do shit anymore for some reason.
40   make INSTALL_ROOT="$pkgdir" install
42   # mkdir -p "$pkgdir"/usr/share/pokerth
43   # cp -r data "$pkgdir"/usr/share/pokerth
44   install -Dm644 "docs/pokerth.1" "$pkgdir/usr/share/man/man1/pokerth.1"
45   install -Dm644 "data/data-copyright.txt" "$pkgdir/usr/share/licenses/pokerth/data-copyright.txt"