From 0ef901c3b49a17750a91c946ec7aba4c7a405a0f Mon Sep 17 00:00:00 2001 From: Alaisdair West Date: Mon, 3 Oct 2022 20:37:25 +1000 Subject: [PATCH] New package: bastet-0.43.2 --- srcpkgs/bastet/patches/new-boost.patch | 22 +++++++++++++++++++ srcpkgs/bastet/template | 29 ++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 srcpkgs/bastet/patches/new-boost.patch create mode 100644 srcpkgs/bastet/template diff --git a/srcpkgs/bastet/patches/new-boost.patch b/srcpkgs/bastet/patches/new-boost.patch new file mode 100644 index 000000000000..5ae11cb2f81d --- /dev/null +++ b/srcpkgs/bastet/patches/new-boost.patch @@ -0,0 +1,22 @@ +diff -Np1 a/BastetBlockChooser.hpp b/BastetBlockChooser.hpp +*** a/BastetBlockChooser.hpp 2015-08-30 17:04:24.000000000 +1000 +--- b/BastetBlockChooser.hpp 2022-09-30 12:18:43.100123811 +1000 +*************** +*** 25,28 **** + +! #include +! #include + #include +--- 25,27 ---- + +! #include + #include +*************** namespace Bastet{ +*** 77,79 **** + private: +! std::tr1::unordered_set _visited; + //std::set _visited; ^^ the above is more efficient, we need to do many inserts +--- 76,78 ---- + private: +! boost::unordered_set _visited; + //std::set _visited; ^^ the above is more efficient, we need to do many inserts diff --git a/srcpkgs/bastet/template b/srcpkgs/bastet/template new file mode 100644 index 000000000000..86cff35a136b --- /dev/null +++ b/srcpkgs/bastet/template @@ -0,0 +1,29 @@ +# Template file for 'bastet' +pkgname=bastet +version=0.43.2 +revision=1 +hostmakedepends="" +makedepends="boost-devel ncurses-devel" +depends="boost ncurses" +short_desc="Evil falling block game" +maintainer="Alaisdair West " +license="GPL-3.0-only" +homepage="http://fph.altervista.org/prog/bastet.html" +changelog="https://raw.githubusercontent.com/fph/bastet/master/NEWS" +distfiles="https://github.com/fph/${pkgname}/archive/refs/tags/${version}.tar.gz" +checksum=f219510afc1d83e4651fbffd5921b1e0b926d5311da4f8fa7df103dc7f2c403f +nocheckperms=yes # For High Score file + +do_build() { + # Bastet's makefile does not work with build_style="gnu-makefile" + make + touch ${pkgname}.scores2 +} + +do_install() { + vbin ./${pkgname} + vinstall ${pkgname}.desktop 0644 usr/share/applications + vinstall ${pkgname}.png 0644 usr/share/pixmaps + vmkdir -m 0666 var/games + vinstall ${pkgname}.scores2 0666 var/games +}