diff --git a/srcpkgs/supertux2-data b/srcpkgs/supertux2-data new file mode 120000 index 00000000000..ea7ce77a976 --- /dev/null +++ b/srcpkgs/supertux2-data @@ -0,0 +1 @@ +supertux2 \ No newline at end of file diff --git a/srcpkgs/supertux2/template b/srcpkgs/supertux2/template new file mode 100644 index 00000000000..d4e8a4c31bb --- /dev/null +++ b/srcpkgs/supertux2/template @@ -0,0 +1,30 @@ +# Template file for 'supertux2' +pkgname=supertux2 +version=0.3.5a +revision=1 +wrksrc=supertux-${version} +build_style=cmake +configure_args=" + -DAPPDATADIR=/usr/share/supertux2 + -DINSTALL_SUBDIR_BIN=bin + -DINSTALL_SUBDIR_SHARE=share/supertux2 + -DWERROR=OFF" +hostmakedepends="cmake pkg-config" +makedepends=" + SDL2_image-devel boost-devel glew-devel libcurl-devel + libvorbis-devel libopenal-devel physfs-devel" +depends="${pkgname}-data" +short_desc="Side-scrolling platform game, milestone 2" +maintainer="beefcurtains " +license="GPL-3" +homepage="https://supertux.github.io/" +distfiles="https://github.com/SuperTux/supertux/releases/download/v${version}/supertux-${version}.tar.bz2" +checksum=71c34502b5879a4130fb111ac754967c3a632ef3017f30883a4d496d87bef8c7 + +supertux2-data_package() { + short_desc+=" - data files" + noarch=yes + pkg_install() { + vmove usr/share/supertux2 + } +} diff --git a/srcpkgs/supertux2/update b/srcpkgs/supertux2/update new file mode 100644 index 00000000000..5801e545dce --- /dev/null +++ b/srcpkgs/supertux2/update @@ -0,0 +1,2 @@ +site="https://api.github.com/repos/SuperTux/supertux/tags" +pattern='"name":\s*"v\K[\w.]+(?=")'