Skip to content

Commit

Permalink
pingus: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
sgn committed Mar 30, 2024
1 parent 2049c07 commit 77d36c4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
31 changes: 20 additions & 11 deletions srcpkgs/pingus/patches/missing-header.patch
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
From df6e2f445d3e2925a94d22faeb17be9444513e92 Mon Sep 17 00:00:00 2001
From: Jonathan Wakely <[email protected]>
Date: Mon, 30 Jan 2017 15:41:53 +0000
Subject: [PATCH] Add missing header for std::function and std::bind

---
src/pingus/screens/demo_session.cpp | 1 +
1 file changed, 1 insertion(+)

diff --git a/src/pingus/screens/demo_session.cpp b/src/pingus/screens/demo_session.cpp
index e3ec49a2c..f887e50f0 100644
--- a/src/pingus/screens/demo_session.cpp
+++ b/src/pingus/screens/demo_session.cpp
@@ -18,6 +18,7 @@
Expand All @@ -20,3 +9,23 @@ index e3ec49a2c..f887e50f0 100644
#include "engine/gui/gui_manager.hpp"
#include "engine/gui/surface_button.hpp"

--- a/src/engine/display/font_description.hpp
+++ b/src/engine/display/font_description.hpp
@@ -17,6 +17,7 @@
#ifndef HEADER_PINGUS_ENGINE_DISPLAY_FONT_DESCRIPTION_HPP
#define HEADER_PINGUS_ENGINE_DISPLAY_FONT_DESCRIPTION_HPP

+#include <cstdint>
#include <vector>

#include "math/rect.hpp"
--- a/src/util/pathname.hpp
+++ b/src/util/pathname.hpp
@@ -17,6 +17,7 @@
#ifndef HEADER_PINGUS_UTIL_PATHNAME_HPP
#define HEADER_PINGUS_UTIL_PATHNAME_HPP

+#include <cstdint>
#include <string>
#include <vector>

3 changes: 2 additions & 1 deletion srcpkgs/pingus/template
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ maintainer="Orphaned <[email protected]>"
license="GPL-2.0-or-later"
homepage="https://pingus.seul.org/"
distfiles="https://gitlab.com/pingus/pingus/-/archive/v${version}/pingus-v${version}.tar.gz"
checksum=31cb2c0ecddd49dbe03535648e8c7c2971da469c52af52cdf9dc2459798342c8
distfiles="${DEBIAN_SITE}/main/p/pingus/pingus_0.7.6.orig.tar.bz2"
checksum=759c1253075d1e72691bc1e770b24cdd51917041fd1857c1daf85b65a6686460
nocross=yes

do_build() {
Expand Down

0 comments on commit 77d36c4

Please sign in to comment.