updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / openfracas / PKGBUILD
blob488d804360e9ec66b1f48d0985a580c423bff244
1 # Contributor: Jan Stępień <jstepien@users.sourceforge.net>
3 pkgname=openfracas
4 pkgver=0.6.1
5 pkgrel=1
6 pkgdesc="A game similar to Risk, based on the discontinued Fracas"
7 url="http://www.openfracas.org/"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 depends=('ruby' 'ruby-sdl' 'ruby-libglade' 'sdl_mixer')
11 source=( "http://download.openfracas.org/${pkgname}-nomusic.zip" )
12 md5sums=('c576fb64c951b0b5ef6f4f6be89cfc6a')
14 build() {
15         cd ${srcdir}
16         rm -rf {Affero\ GPLv3,License}.txt Help
17         sed -i  usr-bin/* \
18                 -e s,share/games,share,
19         mkdir -p ${pkgdir}/usr/{bin/,share/${pkgname}} || return 1
20         install -m755 ${srcdir}/usr-bin/openfracas ${pkgdir}/usr/bin || return 1
21         rm -rf ${srcdir}/usr-bin
22         rm ${pkgname}-nomusic.zip
23         mv ${srcdir}/* ${pkgdir}/usr/share/${pkgname}/