[arch-commits] Commit in supertux/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Tue Jun 8 19:52:37 UTC 2021
Date: Tuesday, June 8, 2021 @ 19:52:37
Author: felixonmars
Revision: 959881
archrelease: copy trunk to community-staging-x86_64
Added:
supertux/repos/community-staging-x86_64/
supertux/repos/community-staging-x86_64/PKGBUILD
(from rev 959880, supertux/trunk/PKGBUILD)
supertux/repos/community-staging-x86_64/missing-include-for-FLT_EPSILON.patch
(from rev 959880, supertux/trunk/missing-include-for-FLT_EPSILON.patch)
---------------------------------------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++
missing-include-for-FLT_EPSILON.patch | 13 ++++++++++
2 files changed, 53 insertions(+)
Copied: supertux/repos/community-staging-x86_64/PKGBUILD (from rev 959880, supertux/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-06-08 19:52:37 UTC (rev 959881)
@@ -0,0 +1,40 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Jaroslaw Swierczynski <swiergot at aur.archlinux.org>
+# Contributor: Eric Bélanger <eric at archlinux.org>
+# Contributor: vande198
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+
+pkgname=supertux
+pkgver=0.6.2
+pkgrel=4
+pkgdesc="A classic 2D jump'n'run sidescroller game in a style similar to the original SuperMario games"
+arch=('x86_64')
+url="https://github.com/supertux/supertux"
+license=('GPL')
+depends=('sdl2_image' 'curl' 'openal' 'libvorbis' 'glew' 'physfs' 'freetype2' 'boost-libs' 'hicolor-icon-theme')
+makedepends=('cmake' 'boost' 'mesa' 'optipng')
+source=("https://github.com/SuperTux/supertux/releases/download/v${pkgver}/SuperTux-v${pkgver}-Source.tar.gz"
+ missing-include-for-FLT_EPSILON.patch)
+sha512sums=('5baa783ee589b42a9bbce3740659dbb7b617ebfcc00c0a038c03d31b56700e3923c8548700ccebe42b325ca03bd85186bc5edef9f6580d93dc48d8aca88cbf74'
+ '4e4116cb0dc7f996cdb96484eac99bd7f5a16829f6b082cc2e4c17b22e6e2f34501b8e3e4caf3c956369c5cd6caa12179b8a4cb1f93c2c8c8b014e3829272cb3')
+
+prepare() {
+ cd "SuperTux-v${pkgver}-Source"
+ patch -Np1 -i ../missing-include-for-FLT_EPSILON.patch
+}
+
+build() {
+ cd "SuperTux-v${pkgver}-Source"
+
+ cmake . \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DINSTALL_SUBDIR_BIN=bin \
+ -DCMAKE_BUILD_TYPE=Release
+ make
+}
+
+package() {
+ cd "SuperTux-v${pkgver}-Source"
+
+ make DESTDIR="${pkgdir}" install
+}
Copied: supertux/repos/community-staging-x86_64/missing-include-for-FLT_EPSILON.patch (from rev 959880, supertux/trunk/missing-include-for-FLT_EPSILON.patch)
===================================================================
--- community-staging-x86_64/missing-include-for-FLT_EPSILON.patch (rev 0)
+++ community-staging-x86_64/missing-include-for-FLT_EPSILON.patch 2021-06-08 19:52:37 UTC (rev 959881)
@@ -0,0 +1,13 @@
+diff --git a/src/supertux/game_session.cpp b/src/supertux/game_session.cpp
+index 41de52e..a8ebfc9 100644
+--- a/src/supertux/game_session.cpp
++++ b/src/supertux/game_session.cpp
+@@ -14,6 +14,8 @@
+ // You should have received a copy of the GNU General Public License
+ // along with this program. If not, see <http://www.gnu.org/licenses/>.
+
++#include <cfloat>
++
+ #include "supertux/game_session.hpp"
+
+ #include "audio/sound_manager.hpp"
More information about the arch-commits
mailing list