[arch-commits] Commit in libebml/trunk (PKGBUILD libebml-limits.patch)
Maxime Gauduin
alucryd at gemini.archlinux.org
Sun Mar 6 16:23:55 UTC 2022
Date: Sunday, March 6, 2022 @ 16:23:55
Author: alucryd
Revision: 439125
add missing include
Added:
libebml/trunk/libebml-limits.patch
Modified:
libebml/trunk/PKGBUILD
----------------------+
PKGBUILD | 30 +++++++++++++++---------------
libebml-limits.patch | 24 ++++++++++++++++++++++++
2 files changed, 39 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-06 16:10:53 UTC (rev 439124)
+++ PKGBUILD 2022-03-06 16:23:55 UTC (rev 439125)
@@ -13,37 +13,37 @@
makedepends=(
cmake
git
+ ninja
)
provides=(libebml.so)
_tag=6c59e5e1ce0087e4465f6d3f479449d3f6bcb167
-source=(git+https://github.com/Matroska-Org/libebml.git#tag=${_tag})
-sha256sums=(SKIP)
+source=(
+ git+https://github.com/Matroska-Org/libebml.git#tag=${_tag}
+ libebml-limits.patch
+)
+b2sums=('SKIP'
+ '62aaeb70d83c91af422b70a3e21ef7e538201c01e1b088a7e05d0bde02078fa6ed723ea3d0dc01da0bfbac4012e2b0c683de7abb26eb5d38553e7905f0ff8bfd')
+prepare() {
+ cd libebml
+ patch -Np1 -i ../libebml-limits.patch
+}
+
pkgver() {
cd libebml
-
git describe --tags | sed 's/^release-//'
}
-prepare() {
- if [[ -d build ]]; then
- rm -rf build
- fi
- mkdir build
-}
-
build() {
- cd build
-
- cmake ../libebml \
+ cmake -S libebml -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DBUILD_SHARED_LIBS=ON
- make
+ cmake --build build
}
package() {
- make DESTDIR="${pkgdir}" -C build install
+ DESTDIR="${pkgdir}" cmake --install build
}
# vim: ts=2 sw=2 et:
Added: libebml-limits.patch
===================================================================
--- libebml-limits.patch (rev 0)
+++ libebml-limits.patch 2022-03-06 16:23:55 UTC (rev 439125)
@@ -0,0 +1,24 @@
+diff --git a/src/EbmlString.cpp b/src/EbmlString.cpp
+index 27e55fd..4c05fcf 100644
+--- a/src/EbmlString.cpp
++++ b/src/EbmlString.cpp
+@@ -34,6 +34,7 @@
+ \author Steve Lhomme <robux4 @ users.sf.net>
+ */
+ #include <cassert>
++#include <limits>
+
+ #include "ebml/EbmlString.h"
+
+diff --git a/src/EbmlUnicodeString.cpp b/src/EbmlUnicodeString.cpp
+index 496a16a..99fc073 100644
+--- a/src/EbmlUnicodeString.cpp
++++ b/src/EbmlUnicodeString.cpp
+@@ -36,6 +36,7 @@
+ */
+
+ #include <cassert>
++#include <limits>
+
+ #include "ebml/EbmlUnicodeString.h"
+
More information about the arch-commits
mailing list