diff options
author | Steffen Weber | 2015-06-10 15:12:46 +0200 |
---|---|---|
committer | Steffen Weber | 2015-06-10 15:12:46 +0200 |
commit | 0321fa9fe9ce04858c207588fbd821635af937db (patch) | |
tree | 8b9fa9b6f7461592b579e3d523f82d9e1fcd22ce | |
download | aur-0321fa9fe9ce04858c207588fbd821635af937db.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c65b07f819f3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = brutalchess + pkgdesc = Chess game inspired by 'Battle Chess'. Features full 3D graphics. + pkgver = 0.5.2 + pkgrel = 5 + url = http://sourceforge.net/projects/brutalchess + arch = i686 + arch = x86_64 + license = GPL2 + depends = sdl_image + depends = freetype2 + depends = glu + source = http://downloads.sourceforge.net/brutalchess/brutalchess-alpha-0.5.2-src.tar.gz + md5sums = 370476b63091b8d82a9ea57c604dcbab + +pkgname = brutalchess + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e0f63a7d51c6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Steffen Weber <-boenki-gmx-de-> +# Contributor: Arkham <arkham at archlinux dot us> +# Contributor: Rick Rein <jeebusroxors@gmail.com> +# Contributor: Stefano Esposito <ragnarok@email.it> + +pkgname=brutalchess +pkgver=0.5.2 +pkgrel=5 +pkgdesc="Chess game inspired by 'Battle Chess'. Features full 3D graphics." +url="http://sourceforge.net/projects/$pkgname" +license=('GPL2') +arch=('i686' 'x86_64') +depends=('sdl_image' 'freetype2' 'glu') +source=("http://downloads.sourceforge.net/$pkgname/$pkgname-alpha-$pkgver-src.tar.gz") +md5sums=('370476b63091b8d82a9ea57c604dcbab') + +prepare() { + cd $pkgname-$pkgver/src + sed '/<time.h>/ a\#include <limits.h>' -i brutalplayer.cpp + sed 's/GLvoid/void/g' -i {md3view,objview}.cpp + sed '/<string>/ a\#include <unistd.h>' -i {xboardplayer,faileplayer}.cpp + sed 's~#include\ <freetype/~#include\ <freetype2/~g' -i fontloader.h +} + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr --libexecdir=/usr/bin + make +} + +check() { + cd $pkgname-$pkgver + make check +} + +package() { + cd $pkgname-$pkgver + make DESTDIR=$pkgdir install +}
\ No newline at end of file |