[arch-commits] Commit in openmw/repos (3 files)

Sven-Hendrik Haase svenstaro at gemini.archlinux.org
Mon Jun 20 22:45:39 UTC 2022


    Date: Monday, June 20, 2022 @ 22:45:39
  Author: svenstaro
Revision: 1238741

archrelease: copy trunk to community-testing-x86_64

Added:
  openmw/repos/community-testing-x86_64/
  openmw/repos/community-testing-x86_64/1941.patch
    (from rev 1238740, openmw/trunk/1941.patch)
  openmw/repos/community-testing-x86_64/PKGBUILD
    (from rev 1238740, openmw/trunk/PKGBUILD)

------------+
 1941.patch |   24 ++++++++++++++++++++++++
 PKGBUILD   |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)

Copied: openmw/repos/community-testing-x86_64/1941.patch (from rev 1238740, openmw/trunk/1941.patch)
===================================================================
--- community-testing-x86_64/1941.patch	                        (rev 0)
+++ community-testing-x86_64/1941.patch	2022-06-20 22:45:39 UTC (rev 1238741)
@@ -0,0 +1,24 @@
+diff --git a/apps/openmw/mwsound/ffmpeg_decoder.cpp b/apps/openmw/mwsound/ffmpeg_decoder.cpp
+index 0a9641635f..997b4e30c6 100644
+--- a/apps/openmw/mwsound/ffmpeg_decoder.cpp
++++ b/apps/openmw/mwsound/ffmpeg_decoder.cpp
+@@ -18,11 +18,14 @@ int FFmpeg_Decoder::readPacket(void *user_data, uint8_t *buf, int buf_size)
+         std::istream& stream = *static_cast<FFmpeg_Decoder*>(user_data)->mDataStream;
+         stream.clear();
+         stream.read((char*)buf, buf_size);
+-        return stream.gcount();
++        std::streamsize count = stream.gcount();
++        if (count == 0)
++            return AVERROR_EOF;
++        return count;
+     }
+     catch (std::exception& )
+     {
+-        return 0;
++        return AVERROR_UNKNOWN;
+     }
+ }
+ 
+-- 
+GitLab
+

Copied: openmw/repos/community-testing-x86_64/PKGBUILD (from rev 1238740, openmw/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2022-06-20 22:45:39 UTC (rev 1238741)
@@ -0,0 +1,51 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at archlinux.org>
+# Contributor: Sandy Carter <bwrsandman at gmail.com>
+
+pkgname=openmw
+pkgver=0.47.0
+pkgrel=7
+pkgdesc="Open-source engine reimplementation for the role-playing game Morrowind"
+arch=('x86_64')
+url="http://www.openmw.org"
+license=('GPL3' 'MIT' 'custom')
+depends=('openal' 'openscenegraph' 'mygui' 'qt5-base' 'ffmpeg' 'sdl2' 'unshield' 'libxt' 'boost-libs')
+makedepends=('cmake' 'boost' 'doxygen' 'ninja')
+source=("https://github.com/OpenMW/openmw/archive/refs/tags/openmw-0.47.0.tar.gz"
+        https://gitlab.com/OpenMW/openmw/-/merge_requests/1870.patch
+        1941.patch
+        https://gitlab.com/OpenMW/openmw/-/commit/98a7d90ee258ceef9c70b0b2955d0458ec46f048.patch)
+sha512sums=('517e650d0054cdba8d38de05ed3975b0fcf8de32fda59c8df7c34b973e5390efa0dd9ec79babdfdaa79dee7aa8a75009776f62fad91b9aa9aa28016c5032652b'
+            '99f721bbeba43a0e259498bbf16ae24dba2a8554e5543fce265ef6c3cc544f4b28c6a13ed3aa51b1eea97fc0552fe056b028188f326dca0265096cf29988f504'
+            'ca1b8601b4baca6929c928b9349e3b07d21992890d4c50c5ff4d537a5ab1b77f044c520af46e8f21480d37902e6329e5ec4459056ac9d8801ba0278d8391bcd7'
+            '37dfc5611523bf158fe2b6c19bdc11ebd0a70837943183b16b1ec36e06df37c7e089586935753c7442720349d5a7e356dc4f11e79666af0c4d5146f8f64d4853')
+
+prepare () {
+  cd openmw-openmw-$pkgver
+  patch -Np1 -i "$srcdir"/1870.patch
+  patch -Np1 -i "$srcdir"/1941.patch
+  patch -Np1 -i "$srcdir"/98a7d90ee258ceef9c70b0b2955d0458ec46f048.patch
+}
+
+build() {
+  cd openmw-openmw-$pkgver
+
+  # We can't use system bullet because openmw needs a version built with double
+  # precision but the one we ship in Arch is built with single precision for
+  # performance reasons.
+  cmake \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DOPENMW_LTO_BUILD=ON \
+    -DDESIRED_QT_VERSION=5 \
+    -DOPENMW_USE_SYSTEM_BULLET=OFF \
+    -GNinja \
+    -Bbuild
+  ninja -C build
+}
+
+package() {
+  cd openmw-openmw-$pkgver
+  DESTDIR="$pkgdir" ninja -C build install
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list