Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TSC: drop noarch, TSC-data; enable cross
- Loading branch information
Showing
2 changed files
with
24 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- tsc/CMakeLists.txt 2020-05-17 12:21:43.000000000 +0200 | ||
+++ tsc/CMakeLists.txt 2020-09-25 15:46:16.492926109 +0200 | ||
@@ -297,9 +297,11 @@ | ||
install(DIRECTORY "${TSC_SOURCE_DIR}/data/worlds/" | ||
DESTINATION ${CMAKE_INSTALL_DATADIR}/tsc/worlds | ||
COMPONENT worlds) | ||
-install(DIRECTORY "${TSC_BINARY_DIR}/scriptdocs" | ||
- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/tsc | ||
- COMPONENT base) | ||
+if (ENABLE_SCRIPT_DOCS) | ||
+ install(DIRECTORY "${TSC_BINARY_DIR}/scriptdocs" | ||
+ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/tsc | ||
+ COMPONENT base) | ||
+endif() | ||
|
||
if(NOT WIN32) | ||
install(FILES "${TSC_SOURCE_DIR}/docs/man/tsc.6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,25 @@ | ||
# Template file for 'TSC' | ||
pkgname=TSC | ||
version=2.1.0 | ||
revision=1 | ||
revision=2 | ||
build_wrksrc=tsc | ||
build_style=cmake | ||
build_helper="qemu" | ||
configure_args="-DFIXED_DATA_DIR=/usr/share/TSC -DBINARY_DIR=/usr/bin | ||
-DUSE_SYSTEM_MRUBY=ON -DUSE_SYSTEM_TINYCLIPBOARD=ON" | ||
hostmakedepends="bison gperf pkg-config mruby gettext" | ||
hostmakedepends="bison gperf pkg-config gettext mruby" | ||
makedepends="SFML-devel boost-devel cegui-devel devil-devel gettext-devel | ||
glew-devel libvorbis-devel libxml++-devel libXt-devel tinyclipboard-devel" | ||
depends="mruby>=0 TSC-data>=${version}_${revision}" | ||
glew-devel libvorbis-devel libxml++-devel libXt-devel tinyclipboard-devel | ||
mruby" | ||
depends="mruby>=0" | ||
short_desc="OSS 2D platform game" | ||
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>" | ||
license="GPL-3.0-or-later" | ||
homepage="https://www.secretchronicles.org/" | ||
distfiles="https://ftp.secretchronicles.org/releases/${pkgname}-${version}.tar.gz" | ||
checksum=6a16765b4951e3d5d1ea2b84e6da8f67b0271460f0c570b53ccdab80d7396261 | ||
# FIXME: find out what's missing for cegui | ||
nocross="cegui does not build libCEGUIOpenGLRenderer when cross compiling" | ||
replaces="TSC-data" | ||
|
||
post_install() { | ||
vinstall extras/tsc.desktop 644 usr/share/applications | ||
} | ||
|
||
TSC-data_package() { | ||
short_desc+=" - data files" | ||
archs=noarch | ||
pkg_install() { | ||
vmove usr/share/tsc | ||
} | ||
} |