odt2txt: port to pcre2 (#23475)
This commit is contained in:
parent
a6c39d43ff
commit
9cdf48ab0a
@ -17,7 +17,7 @@ index 3f8730a..85cd657 100644
|
||||
EXT = .exe
|
||||
endif
|
||||
+ifneq (,$(findstring MINGW,$(UNAME_S)))
|
||||
+ LIBS += -liconv -lpcreposix -lpcre -llibzip -lzip -lz
|
||||
+ LIBS += -liconv -lpcre2-posix -llibzip -lzip -lz
|
||||
+ EXT = .exe
|
||||
+endif
|
||||
ifneq ($(MINGW32),)
|
||||
@ -32,7 +32,7 @@ index 4940aa3..96c6d5b 100644
|
||||
#define REGEX_H
|
||||
|
||||
-#include <regex.h>
|
||||
+#include <pcreposix.h>
|
||||
+#include <pcre2posix.h>
|
||||
#include <stdio.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@ -4,7 +4,7 @@ _realname=odt2txt
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
|
||||
pkgver=0.5
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="extracts the text out of OpenDocument Texts"
|
||||
url="https://github.com/dstosberg/odt2txt/"
|
||||
license=("GPL2")
|
||||
@ -12,12 +12,12 @@ arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-libiconv"
|
||||
"${MINGW_PACKAGE_PREFIX}-libzip"
|
||||
"${MINGW_PACKAGE_PREFIX}-pcre")
|
||||
"${MINGW_PACKAGE_PREFIX}-pcre2")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-cc")
|
||||
source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/dstosberg/odt2txt/archive/v${pkgver}.tar.gz"
|
||||
"0001-Compile-for-Msys2.patch")
|
||||
sha256sums=('23a889109ca9087a719c638758f14cc3b867a5dcf30a6c90bf6a0985073556dd'
|
||||
'51cd6f2c353a63a6810e3e1327849560fda115286a305bc8f5625cb00f8b48df')
|
||||
'6a18ecb0f4ddded9020f02ad04eaf54eba1d9c6eba3249048ede6c8868993410')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${_realname}-${pkgver}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user