updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / holdingnuts / PKGBUILD
bloba10e1e959b9852515cf1aa879468a2e86a8f1b14
1 # Maintainer: Arkham <arkham at archlinux dot us>
2 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
4 pkgname=holdingnuts
5 pkgver=0.0.5
6 pkgrel=1
7 pkgdesc="A Texas Hold'em poker client and server"
8 arch=('i686' 'x86_64')
9 url="http://www.holdingnuts.net/"
10 license=('GPL3')
11 depends=('qt' 'sdl')
12 makedepends=('make' 'cmake>=2.6')
13 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2)
14 md5sums=('666d7545f5f053237756796e6ee64b5d')
16 build() {
17     cd $srcdir/$pkgname-$pkgver
19     mkdir -p build
20     cd build
22     cmake .. \
23         -DCMAKE_INSTALL_PREFIX=/usr \
24         -DCMAKE_DATA_PATH=/usr/share
26     make || return 1
27     make DESTDIR=$pkgdir install || return 1
29     cd ..
31     install -d $pkgdir/usr/share/man/man6
32     install -m 644 docs/holdingnuts{,-server}.6 $pkgdir/usr/share/man/man6/
33     install -Dm 644 $pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
34     install -Dm 644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop