From a6dcbdffd1d0bc5d6b34fbeed9f9819756a4c98c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sun, 18 Oct 2015 19:47:08 +0200 Subject: [PATCH] New package: TSC-2.0.0 Full title "The Secret Chronicles of Dr. M." --- srcpkgs/TSC-data | 1 + srcpkgs/TSC/patches/fix-parse_y.patch | 10 ++++++++ srcpkgs/TSC/template | 35 +++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 120000 srcpkgs/TSC-data create mode 100644 srcpkgs/TSC/patches/fix-parse_y.patch create mode 100644 srcpkgs/TSC/template 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 + } +}