libcdr: update to version 0.1.7

This commit is contained in:
Patrick Storz
2021-06-29 00:24:40 +02:00
parent e7a40389b7
commit a414636664
2 changed files with 4 additions and 24 deletions

View File

@@ -3,8 +3,8 @@
_realname=libcdr
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.1.6
pkgrel=4
pkgver=0.1.7
pkgrel=1
pkgdesc="libcdr is a library and a set of tools for reading and converting binary files produced by Corel DRAW (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
@@ -20,14 +20,11 @@ depends=("${MINGW_PACKAGE_PREFIX}-icu"
"${MINGW_PACKAGE_PREFIX}-lcms2"
"${MINGW_PACKAGE_PREFIX}-librevenge"
"${MINGW_PACKAGE_PREFIX}-zlib")
source=("https://dev-www.libreoffice.org/src/${_realname}/${_realname}-${pkgver}.tar.xz"
icu68.patch)
sha256sums=('01cd00b04a030977e544433c2d127c997205332cd9b8e35ec0ee17110da7f861'
'c3fad07e04c343dd3eaf54400b121aebc9f589e9457ca0bbb7ec1606f39eab23')
source=("https://dev-www.libreoffice.org/src/${_realname}/${_realname}-${pkgver}.tar.xz")
sha256sums=('5666249d613466b9aa1e987ea4109c04365866e9277d80f6cd9663e86b8ecdd4')
prepare() {
cd "${srcdir}/${_realname}-${pkgver}"
patch -p1 -i ${srcdir}/icu68.patch
}
build() {

View File

@@ -1,17 +0,0 @@
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);
^
--- libcdr/src/lib/libcdr_utils.cpp.orig 2020-02-02 15:30:44 UTC
+++ libcdr/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();