From 656260ed0953b7f659292ca6dd165937d9c36700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Fri, 25 Sep 2020 16:36:39 +0200 Subject: [PATCH] TSC: drop noarch, TSC-data; enable cross --- srcpkgs/TSC/patches/no-scriptdocs-cross.patch | 17 +++++++++++++++ srcpkgs/TSC/template | 21 +++++++------------ 2 files changed, 24 insertions(+), 14 deletions(-) create mode 100644 srcpkgs/TSC/patches/no-scriptdocs-cross.patch diff --git a/srcpkgs/TSC/patches/no-scriptdocs-cross.patch b/srcpkgs/TSC/patches/no-scriptdocs-cross.patch new file mode 100644 index 00000000000..5af778dab6e --- /dev/null +++ b/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" diff --git a/srcpkgs/TSC/template b/srcpkgs/TSC/template index 10150e7481c..661dd30fb30 100644 --- a/srcpkgs/TSC/template +++ b/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 " 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 - } -}