mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-26 07:22:56 +02:00
TSC: drop noarch, TSC-data; enable cross
This commit is contained in:
parent
1a1e289721
commit
656260ed09
2 changed files with 24 additions and 14 deletions
17
srcpkgs/TSC/patches/no-scriptdocs-cross.patch
Normal file
17
srcpkgs/TSC/patches/no-scriptdocs-cross.patch
Normal file
|
@ -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"
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue