Date: Friday, October 16, 2020 @ 05:49:11
  Author: andyrtr
Revision: 398420

upgpkg: libmspub 0.1.4-8: fix FTBFS - FS#68273

Added:
  libmspub/trunk/buildfix.diff
Modified:
  libmspub/trunk/PKGBUILD

---------------+
 PKGBUILD      |   14 +++++++++++---
 buildfix.diff |   12 ++++++++++++
 2 files changed, 23 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2020-10-15 21:09:02 UTC (rev 398419)
+++ PKGBUILD    2020-10-16 05:49:11 UTC (rev 398420)
@@ -3,7 +3,7 @@
 
 pkgname=libmspub
 pkgver=0.1.4
-pkgrel=7
+pkgrel=8
 pkgdesc="Microsoft Publisher file format parser library (latest snapshot)"
 arch=('x86_64')
 url="https://wiki.documentfoundation.org/DLP/Libraries/libmspub";
@@ -10,9 +10,17 @@
 license=('GPL2' 'LGPL2.1' 'MPL')
 depends=('libwpd' 'icu' 'librevenge')
 makedepends=('libwpg' 'boost' 'doxygen')
-source=(https://dev-www.libreoffice.org/src/${pkgname}/${pkgname}-${pkgver}.tar.xz)
-sha256sums=('ef36c1a1aabb2ba3b0bedaaafe717bf4480be2ba8de6f3894be5fd3702b013ba')
+source=(https://dev-www.libreoffice.org/src/${pkgname}/${pkgname}-${pkgver}.tar.xz
+        buildfix.diff)
+sha256sums=('ef36c1a1aabb2ba3b0bedaaafe717bf4480be2ba8de6f3894be5fd3702b013ba'
+            'be1a871f9ebfb15d989605137d5de0c5dc67a3e383e0e1178037f8a9bdfc89dc')
 
+prepare() {
+    cd "${pkgname}"-${pkgver}
+    patch -Np1 -i ../buildfix.diff
+    autoreconf -vfi
+}
+
 build() {
     cd "${pkgname}"-${pkgver}
     ./configure --prefix=/usr --with-docs

Added: buildfix.diff
===================================================================
--- buildfix.diff                               (rev 0)
+++ buildfix.diff       2020-10-16 05:49:11 UTC (rev 398420)
@@ -0,0 +1,12 @@
+diff --git a/src/lib/MSPUBMetaData.h b/src/lib/MSPUBMetaData.h
+index 9167f4f..27bdd4f 100644
+--- a/src/lib/MSPUBMetaData.h
++++ b/src/lib/MSPUBMetaData.h
+@@ -13,6 +13,7 @@
+ #include <map>
+ #include <utility>
+ #include <vector>
++#include <stdint.h>
+ 
+ #include <librevenge/librevenge.h>
+ 

Reply via email to