2015-10-18 19:47:08 +02:00
|
|
|
# Template file for 'TSC'
|
|
|
|
pkgname=TSC
|
|
|
|
version=2.0.0
|
2016-10-20 18:47:59 +02:00
|
|
|
revision=3
|
2015-10-18 19:47:08 +02:00
|
|
|
build_style=cmake
|
|
|
|
build_wrksrc=tsc
|
2015-11-15 22:32:19 +01:00
|
|
|
configure_args="-DFIXED_DATA_DIR=/usr/share/TSC -DBINARY_DIR=/usr/bin"
|
2015-10-18 19:47:08 +02:00
|
|
|
make_build_args="LD=\${CXX}"
|
2016-11-08 12:08:01 +01:00
|
|
|
hostmakedepends="bison flex gperf pkg-config ruby"
|
2015-11-15 22:32:19 +01:00
|
|
|
makedepends="boost-devel cegui07-devel devil-devel gettext-devel glew-devel
|
|
|
|
libvorbis-devel libxml++-devel SDL_image-devel SDL_mixer-devel SDL_ttf-devel"
|
2015-10-18 19:47:08 +02:00
|
|
|
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/"
|
2015-11-15 22:32:19 +01:00
|
|
|
distfiles="ftp://ftp.secretchronicles.de/releases/${pkgname}-${version}.tar.xz"
|
|
|
|
checksum=c8a9ca3975f9de16aa59fab2a7864c3c541963b46c2c40533632c4fc621b407a
|
2015-10-18 19:47:08 +02:00
|
|
|
nocross=yes # Fails to run generated mruby/mrbc
|
|
|
|
|
|
|
|
CXXFLAGS="-std=c++11"
|
|
|
|
|
2015-11-15 22:32:19 +01:00
|
|
|
pre_configure() {
|
|
|
|
# Fix man page path
|
|
|
|
sed -i CMakeLists.txt -e "s;DESTINATION man/man6;DESTINATION share/man/man6;"
|
|
|
|
}
|
|
|
|
|
2015-10-18 19:47:08 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|