void-packages/srcpkgs/cdogs-sdl/template

26 lines
892 B
Bash

# Template file for 'cdogs'
pkgname=cdogs-sdl
version=0.6.2
revision=1
build_style=cmake
hostmakedepends="cmake"
makedepends="physfs-devel SDL2-devel SDL2_mixer-devel SDL2_image-devel SDL2_net-devel yajl-devel"
short_desc="A classic overhead run-and-gun game"
maintainer="Enno Boland <gottox@voidlinux.eu>"
homepage="http://cxong.github.io/cdogs-sdl/"
license="GPL2"
distfiles="https://github.com/cxong/cdogs-sdl/archive/$version.tar.gz"
checksum=d6f421c760b15b706bdfc79ed8d18802dc2e8efeefabb69a31679c9b51f328ab
configure_args="-DCDOGS_DATA_DIR=/usr/share/cdogs/"
pre_configure() {
# Install data to /usr/share/cdogs/ instead of cwd.
sed -i '/^set(INSTALL_PREFIX/ s#.*#set(INSTALL_PREFIX "/usr/share/cdogs/")#' CMakeLists.txt
# Do not build shipped yajl.
sed -i '/add_subdirectory(yajl)/d' src/cdogs/CMakeLists.txt
}
post_install() {
mv $DESTDIR/usr/share/cdogs/bin $DESTDIR/usr/bin
}