summaryrefslogtreecommitdiff
path: root/pcr/brutalchess/PKGBUILD
blob: 9504482333092da562e2d18b87acd37e35af9191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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' 'mips64el')
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
}