|
1 | 1 | # Template file for 'TSC' |
2 | 2 | pkgname=TSC |
3 | | -version=2.1.0 |
4 | | -revision=10 |
| 3 | +version=2.2.0 |
| 4 | +revision=1 |
| 5 | +create_wrksrc=yes |
5 | 6 | build_wrksrc=tsc |
6 | 7 | build_style=cmake |
7 | 8 | build_helper="qemu" |
8 | 9 | configure_args="-DFIXED_DATA_DIR=/usr/share/TSC -DBINARY_DIR=/usr/bin |
9 | | - -DUSE_SYSTEM_MRUBY=ON -DUSE_SYSTEM_TINYCLIPBOARD=ON" |
10 | | -# Hard to build vendored mruby |
11 | | -# Don't work with mruby 3 |
| 10 | + -DUSE_SYSTEM_MRUBY=ON -DUSE_SYSTEM_TINYCLIPBOARD=ON -DUSE_SYSTEM_CEGUI=ON" |
12 | 11 | hostmakedepends="bison gperf pkg-config gettext mruby2" |
13 | 12 | makedepends="SFML-devel boost-devel-minimal libboost_chrono libboost_thread |
14 | 13 | libboost_filesystem cegui-devel devil-devel gettext-devel |
15 | 14 | glew-devel libvorbis-devel libxml++-devel libXt-devel tinyclipboard-devel |
16 | | - pcre-devel mruby2" |
| 15 | + pcre-devel mruby2 glm" |
17 | 16 | short_desc="OSS 2D platform game" |
18 | 17 | maintainer="Orphaned <orphan@voidlinux.org>" |
19 | 18 | license="GPL-3.0-or-later" |
20 | 19 | homepage="https://www.secretchronicles.org/" |
21 | | -distfiles="https://github.com/Secretchronicles/TSC/releases/download/v${version}/TSC-${version}.tar.gz" |
22 | | -checksum=6a16765b4951e3d5d1ea2b84e6da8f67b0271460f0c570b53ccdab80d7396261 |
| 20 | +_commit=4beff1a3cc279b0e38709684a4a7aefb02f3dea5 |
| 21 | +_maindistfile="https://github.com/Secretchronicles/TSC/archive/${_commit}.tar.gz" |
| 22 | +_mrubydistfile="https://github.com/mruby/mruby/archive/1a9bdfcde5fd7c91e756747ba0565f29385115a7.tar.gz" |
| 23 | +_poparserdistfile="https://github.com/Secretchronicles/pod-parser/archive/98f8c946ef765111f06f6b67ffc3be1e9adec717.tar.gz" |
| 24 | +distfiles="${_maindistfile}>TSC-${_commit}.tar.gz ${_mrubydistfile}>mruby-${_commit}.tar.gz ${_poparserdistfile}>pod-parser-${_commit}.tar.gz" |
| 25 | +checksum="f75aa5066c919e811849edfe94c6d60ee3e8592331c2dad3adf0910a223b5162 0e9058205d62e41a2398589c0d6956e900c5b266b9dc21b10749303240b14cf4 6e46667b39ba28c964c2fa3cbb2dc5fcf35f3ad7dfc63493fea51d30b3a1f032" |
| 26 | +skip_extraction="pod-parser-${_commit}.tar.gz" |
| 27 | + |
| 28 | +do_extract() { |
| 29 | + vsrcextract "TSC-${_commit}.tar.gz" |
| 30 | + vsrcextract -C mruby/mruby "mruby-${_commit}.tar.gz" --strip-components=1 |
| 31 | + vsrcextract -C pod-parser "pod-parser-${_commit}.tar.gz" --strip-components=1 |
| 32 | +} |
23 | 33 | replaces="TSC-data>=0" |
24 | 34 |
|
25 | 35 | if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then |
26 | 36 | broken="The host ($XBPS_WORDSIZE) and target ($XBPS_TARGET_WORDSIZE) word sizes need to be the same for cross building." |
27 | 37 | fi |
28 | 38 |
|
29 | 39 | post_install() { |
30 | | - vinstall extras/tsc.desktop 644 usr/share/applications |
| 40 | + vinstall extras/org.secretchronicles.TSC.desktop 644 usr/share/applications |
31 | 41 | } |
0 commit comments