summaryrefslogtreecommitdiff
path: root/freeminer-git
diff options
context:
space:
mode:
authorErich Eckner <erich.eckner.ext@bestsecret.com>2024-07-19 16:05:42 +0200
committerErich Eckner <erich.eckner.ext@bestsecret.com>2024-07-19 16:10:08 +0200
commit92c5fefc72dcc59b4b881926b719f52aa806bf86 (patch)
tree18b028297ebfed71951f805478a2efb7857e382f /freeminer-git
parent6fd6c81e1942e20a83dc0e6b22fac6c663eaa0ee (diff)
downloadarchlinuxewe-92c5fefc72dcc59b4b881926b719f52aa806bf86.tar.xz
freeminer-git: fix import error for std::upper_bound
Diffstat (limited to 'freeminer-git')
-rw-r--r--freeminer-git/PKGBUILD7
-rw-r--r--freeminer-git/algorithm.patch10
2 files changed, 15 insertions, 2 deletions
diff --git a/freeminer-git/PKGBUILD b/freeminer-git/PKGBUILD
index 6ac0371ab..bad6d3bb0 100644
--- a/freeminer-git/PKGBUILD
+++ b/freeminer-git/PKGBUILD
@@ -14,8 +14,10 @@ pkgrel=2
arch=('i686' 'pentium4' 'x86_64')
url='https://freeminer.org/'
license=('GPL3' 'CCPL:cc-by-sa-3.0')
-source=("git+https://github.com/${_pkgbase}/${_pkgbase}")
-sha256sums=('SKIP')
+source=("git+https://github.com/${_pkgbase}/${_pkgbase}"
+ algorithm.patch)
+sha256sums=('SKIP'
+ 'e42aba9bbed74272d53f0d9b0aa3f1ad80dc373623ed7c798dab918d2201aadc')
makedepends=(
'leveldb' 'curl' 'git' 'hiredis' 'sqlite' 'libglvnd' 'libjpeg-turbo' 'libxi' 'luajit'
@@ -25,6 +27,7 @@ makedepends=(
prepare() {
cd "${srcdir}/${_pkgbase}"
git submodule update --init --recursive
+ patch -p1 -i "${srcdir}/algorithm.patch"
# Create build directory
mkdir -p "${srcdir}"/build-{client,server}
diff --git a/freeminer-git/algorithm.patch b/freeminer-git/algorithm.patch
new file mode 100644
index 000000000..14eefe8e3
--- /dev/null
+++ b/freeminer-git/algorithm.patch
@@ -0,0 +1,10 @@
+--- a/src/client/sound/sound_data.cpp 2024-07-19 15:56:00.688697972 +0200
++++ b/src/client/sound/sound_data.cpp 2024-07-19 15:51:05.018522685 +0200
+@@ -22,6 +22,7 @@
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
++#include <algorithm>
+ #include "sound_data.h"
+
+ #include "sound_constants.h"