updated on Tue Jan 17 16:10:12 UTC 2012
[aur-mirror.git] / bastet / PKGBUILD
blob26ec1fe79ff8e32f396b2d7b2e696483ebf90474
1 # Maintainer: Jens Adam (byte/jra) <j_adam@web.de>
3 pkgname=bastet
4 pkgver=0.43
5 pkgrel=2
6 pkgdesc="Tetris(r) clone with 'bastard' block-choosing AI"
7 url="http://fph.altervista.org/prog/bastet.html"
8 license=('GPL3')
9 arch=('i686' 'x86_64')
10 depends=('boost-libs' 'ncurses')
11 makedepends=('boost')
12 backup=('var/games/bastet.scores2')
13 source=("http://fph.altervista.org/prog/files/${pkgname}-${pkgver}.tgz")
14 md5sums=('b47090daa7b6d89b98b5b477cf155733')
16 build() {
17   cd "${srcdir}"/${pkgname}-${pkgver}/
18   make
21 package() {
22   cd "${srcdir}"/${pkgname}-${pkgver}/
24   # install binary
25   install -D bastet "${pkgdir}"/usr/bin/bastet
27   # install manpage
28   install -Dm644 bastet.6 "${pkgdir}"/usr/share/man/man6/bastet.6
30   # prepare highscore file
31   # (seems to work, so ignore the startup error message)
32   install -dm775 -g games "${pkgdir}"/var/games/
33   touch "${pkgdir}"/var/games/bastet.scores2
34   chmod 664 "${pkgdir}"/var/games/bastet.scores2
35   chown root:games "${pkgdir}"/var/games/bastet.scores2