Skip to content

Commit

Permalink
TSC: drop noarch, TSC-data; enable cross
Browse files Browse the repository at this point in the history
  • Loading branch information
pullmoll committed Sep 25, 2020
1 parent 1a1e289 commit 656260e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
17 changes: 17 additions & 0 deletions srcpkgs/TSC/patches/no-scriptdocs-cross.patch
@@ -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"
21 changes: 7 additions & 14 deletions srcpkgs/TSC/template
@@ -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
}
}

0 comments on commit 656260e

Please sign in to comment.