# Template file for 'TSC' pkgname=TSC version=2.0.0 revision=6 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 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 " license="GPL-3.0-or-later" homepage="http://www.secretchronicles.org/" distfiles="http://ftp.secretchronicles.org/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 } }