diff --git a/srcpkgs/TSC-data b/srcpkgs/TSC-data new file mode 120000 index 00000000000..267ca2ddc7a --- /dev/null +++ b/srcpkgs/TSC-data @@ -0,0 +1 @@ +TSC \ No newline at end of file diff --git a/srcpkgs/TSC/patches/fix-parse_y.patch b/srcpkgs/TSC/patches/fix-parse_y.patch new file mode 100644 index 00000000000..706fa041099 --- /dev/null +++ b/srcpkgs/TSC/patches/fix-parse_y.patch @@ -0,0 +1,10 @@ +--- mruby/mruby/src/parse.y 2015-10-18 17:13:49.000000000 +0200 ++++ mruby/mruby/src/parse.y 2015-10-18 17:20:11.650073778 +0200 +@@ -194,6 +194,7 @@ + b[len] = '\0'; + return b; + } ++#undef strndup + #define strndup(s,len) parser_strndup(p, s, len) + + static char* diff --git a/srcpkgs/TSC/template b/srcpkgs/TSC/template new file mode 100644 index 00000000000..4baf6e9a979 --- /dev/null +++ b/srcpkgs/TSC/template @@ -0,0 +1,35 @@ +# Template file for 'TSC' +pkgname=TSC +version=2.0.0 +revision=1 +build_style=cmake +build_wrksrc=tsc +configure_args="-DFIXED_DATA_DIR=/usr/share/TSC -DBINARY_DIR=/usr" +make_build_args="LD=\${CXX}" +hostmakedepends="bison flex cmake gperf pkg-config ruby" +makedepends="boost-devel devil-devel gettext-devel glew-devel libvorbis-devel + libxml++-devel SDL_image-devel SDL_mixer-devel SDL_ttf-devel" +depends="TSC-data>=${version}_${revision}" +short_desc="OSS 2D platform game" +maintainer="Jürgen Buchmüller " +license="GPL-3" +homepage="http://www.secretchronicles.de/" +# The official tarball does not include the git mruby/mruby and mruby/mgems files +distfiles="http://repo.voidlinux.de/distfiles/${pkgname}-${version}/${pkgname}-${version}-full.tar.xz" +checksum="0239a30a9f46ece040efebc069d9f1b0153fbdae30393614ffe1e4be35148322" +nocross=yes # Fails to run generated mruby/mrbc + +CXXFLAGS="-std=c++11" + +post_install() { + vbin build/tsc + vinstall extras/tsc.desktop 644 usr/share/applications +} + +TSC-data_package() { + short_desc+=" - data files" + noarch=yes + pkg_install() { + vmove usr/share/TSC + } +}