summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-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
+}