void-packages/srcpkgs/TSC/template

40 lines
1.1 KiB
Bash
Raw Normal View History

# Template file for 'TSC'
pkgname=TSC
version=2.0.0
2015-11-15 21:33:58 +00:00
revision=2
build_style=cmake
build_wrksrc=tsc
configure_args="-DFIXED_DATA_DIR=/usr/share/TSC -DBINARY_DIR=/usr/bin"
make_build_args="LD=\${CXX}"
hostmakedepends="bison flex cmake gperf pkg-config ruby"
makedepends="boost-devel cegui07-devel devil-devel gettext-devel glew-devel
libvorbis-devel libxml++-devel SDL_image-devel SDL_mixer-devel SDL_ttf-devel"
depends="TSC-data>=${version}_${revision}"
short_desc="OSS 2D platform game"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-3"
homepage="http://www.secretchronicles.de/"
distfiles="ftp://ftp.secretchronicles.de/releases/${pkgname}-${version}.tar.xz"
checksum=c8a9ca3975f9de16aa59fab2a7864c3c541963b46c2c40533632c4fc621b407a
nocross=yes # Fails to run generated mruby/mrbc
CXXFLAGS="-std=c++11"
pre_configure() {
# Fix man page path
sed -i CMakeLists.txt -e "s;DESTINATION man/man6;DESTINATION share/man/man6;"
}
post_install() {
vbin build/tsc
vinstall extras/tsc.desktop 644 usr/share/applications
}
TSC-data_package() {
short_desc+=" - data files"
noarch=yes
pkg_install() {
vmove usr/share/TSC
}
}