1 # Contributor: Lukas Marsik <lukas dot marsik at gmail dot com>
6 pkgdesc="A multiplayer wild west-themed card game."
8 url="http://code.google.com/p/kbang/"
12 source=(http://kbang.googlecode.com/files/$pkgname-$pkgver-src.tar.bz2)
13 md5sums=('bb7a1d0313f9d51e4d893ba27f0b1650')
18 cd $srcdir/$pkgname-$pkgver-src
19 qmake kbang.pro || return 1
22 # Copy to /usr/local/games
23 install -d $pkgdir/usr/local/games/kbang
24 cp -r gfx $pkgdir/usr/local/games/kbang
25 install -m 755 kbang-client $pkgdir/usr/local/games/kbang
26 install -m 755 kbang-server $pkgdir/usr/local/games/kbang
28 # Install run hacks (binary have to be runned from the same directory as gfx dir is)
29 install -d $pkgdir/usr/local/bin
30 echo -e "#!/bin/sh\ncd /usr/local/games/kbang && ./kbang-client" > $pkgdir/usr/local/bin/kbang-client
31 chmod 755 $pkgdir/usr/local/bin/kbang-client
32 echo -e "#!/bin/sh\ncd /usr/local/games/kbang && ./kbang-server" > $pkgdir/usr/local/bin/kbang-server
33 chmod 755 $pkgdir/usr/local/bin/kbang-server