# 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 '// a\#include ' -i brutalplayer.cpp sed 's/GLvoid/void/g' -i {md3view,objview}.cpp sed '// a\#include ' -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 }