void-packages/srcpkgs/cdogs-sdl/template
2016-05-25 12:57:03 +02:00

25 lines
892 B
Bash

# Template file for 'cdogs'
pkgname=cdogs-sdl
version=0.6.1
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=36035451286e3dd8af036ebfd84eb8ae4b9fa84bfc07a0bf2600cf7a78cbc167
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
}