blob: b69adb8f74a3242d7c3f4e5792bc12676d819dd0 (
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
|
# Description: Battlechess clone
# URL: https://sourceforge.net/projects/brutalchess
# Maintainer: Erich Eckner, crux at eckner dot net
# Depends on: sdl_image
name=brutalchess
version=0.5.2
release=1
source=("https://downloads.sourceforge.net/$name/$name-alpha-$version-src.tar.gz")
build() {
cd ${name}-${version}/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
# Force pkg-config for the FreeType config program
sed 's/FT2_CONFIG=$ac_cv_path_FT2_CONFIG/FT2_CONFIG="pkg-config freetype2"/' -i ../configure
sed 's/7\.0\.1/2.0.5/' -i ../configure
cd ..
./configure --prefix=/usr --libexecdir=/usr/lib/$name
make
make DESTDIR=$PKG install
}
|