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

Evangelos Foutras foutrelis at archlinux.org
Sat Dec 19 06:49:42 UTC 2020


    Date: Saturday, December 19, 2020 @ 06:49:41
  Author: foutrelis
Revision: 404545

archrelease: copy trunk to staging-x86_64

Added:
  libcdr/repos/staging-x86_64/
  libcdr/repos/staging-x86_64/PKGBUILD
    (from rev 404544, libcdr/trunk/PKGBUILD)
  libcdr/repos/staging-x86_64/icu68.patch
    (from rev 404544, libcdr/trunk/icu68.patch)

-------------+
 PKGBUILD    |   38 ++++++++++++++++++++++++++++++++++++++
 icu68.patch |   17 +++++++++++++++++
 2 files changed, 55 insertions(+)

Copied: libcdr/repos/staging-x86_64/PKGBUILD (from rev 404544, libcdr/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-12-19 06:49:41 UTC (rev 404545)
@@ -0,0 +1,38 @@
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+# Contributor: megadriver <megadriver at gmx dot com>
+# Contributor: Luca Bennati <lucak3 AT gmail DOT com>
+
+pkgname=libcdr
+pkgver=0.1.6
+pkgrel=3
+pkgdesc="CorelDraw file format importer library for LibreOffice"
+arch=('x86_64')
+url="https://wiki.documentfoundation.org/DLP/Libraries/libcdr"
+license=('GPL2' 'LGPL2.1' 'MPL')
+depends=('libwpd' 'lcms2' 'icu' 'librevenge')
+makedepends=('libwpg' 'boost' 'doxygen' 'cppunit')
+source=(https://dev-www.libreoffice.org/src/$pkgname/$pkgname-$pkgver.tar.xz
+        icu68.patch)
+sha256sums=('01cd00b04a030977e544433c2d127c997205332cd9b8e35ec0ee17110da7f861'
+            'bd044f2d983d5a5ca513e7fcfde302d6ef3175f427e49b3fc7937167b6bbaacb')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -Np0 -i ../icu68.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver
+  make -k check
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+}

Copied: libcdr/repos/staging-x86_64/icu68.patch (from rev 404544, libcdr/trunk/icu68.patch)
===================================================================
--- staging-x86_64/icu68.patch	                        (rev 0)
+++ staging-x86_64/icu68.patch	2020-12-19 06:49:41 UTC (rev 404545)
@@ -0,0 +1,17 @@
+Regressed by https://github.com/unicode-org/icu/commit/c3fe7e09d844
+
+libcdr_utils.cpp:111:35: error: use of undeclared identifier 'TRUE'
+    ucsdet_enableInputFilter(csd, TRUE);
+                                  ^
+
+--- src/lib/libcdr_utils.cpp.orig	2020-02-02 15:30:44 UTC
++++ src/lib/libcdr_utils.cpp
+@@ -108,7 +108,7 @@ static unsigned short getEncoding(const unsigned char 
+     csd = ucsdet_open(&status);
+     if (U_FAILURE(status) || !csd)
+       return 0;
+-    ucsdet_enableInputFilter(csd, TRUE);
++    ucsdet_enableInputFilter(csd, true);
+     ucsdet_setText(csd, (const char *)buffer, bufferLength, &status);
+     if (U_FAILURE(status))
+       throw libcdr::EncodingException();



More information about the arch-commits mailing list