summaryrefslogtreecommitdiff
path: root/pcr/brutalchess
diff options
context:
space:
mode:
authorAurélien DESBRIÈRES <aurelien@hackers.camp>2014-06-23 15:39:50 +0200
committerAurélien DESBRIÈRES <aurelien@hackers.camp>2014-06-23 15:39:50 +0200
commit2ae21c2ba8db1bb85b7f63587d0e1eeb0a8cb28e (patch)
tree8d8190473cf3918ffc18af43ca423ac30eba614b /pcr/brutalchess
parent1bf6a5c9ecbe809e4fbe8a806ebc04f5534eb44e (diff)
brutalchess Chess game inspired by 'Battle Chess'. Features full 3D
Diffstat (limited to 'pcr/brutalchess')
-rw-r--r--pcr/brutalchess/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/pcr/brutalchess/PKGBUILD b/pcr/brutalchess/PKGBUILD
new file mode 100644
index 000000000..eb6d344b9
--- /dev/null
+++ b/pcr/brutalchess/PKGBUILD
@@ -0,0 +1,40 @@
+# Contributor (Arch) : boenki <boenki at gmx dot de>
+# Contributor (Arch) : Arkham <arkham at archlinux dot us>
+# Contributor (Arch) : Rick Rein <jeebusroxors@gmail.com>
+# Contributor (Arch) : Stefano Esposito <ragnarok@email.it>
+# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
+
+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
+}