Package Details: mingw-w64-pcre2 10.47-1

Git Clone URL: https://aur.archlinux.org/mingw-w64-pcre2.git (read-only, click to copy)
Package Base: mingw-w64-pcre2
Description: A library that implements Perl 5-style regular expressions. 2nd version (mingw-w64)
Upstream URL: https://github.com/PCRE2Project/pcre2
Keywords: mingw mingw-w64 mingw-w64-pcre pcre pcre2
Licenses: BSD-2-Clause, BSD-3-Clause WITH PCRE2-exception
Submitter: Schala
Maintainer: Martchus
Last Packager: Martchus
Votes: 8
Popularity: 0.000000
First Submitted: 2017-02-25 10:59 (UTC)
Last Updated: 2025-12-16 16:25 (UTC)

Latest Comments

Martchus commented on 2025-12-16 15:57 (UTC) (edited on 2025-12-16 16:31 (UTC) by Martchus)

I an specifying the same keys as the regular pcre2 package and it worked for me at the time of updating to 10.46. I'll have to update to 10.47 anyway. Maybe I can reproduce the issue then. Otherwise it is probably an issue with your gpg setup.

EDIT: I've just updated to 10.47 and it builds for me. So check your gpg setup.

php4fan commented on 2025-12-16 15:02 (UTC) (edited on 2025-12-16 15:03 (UTC) by php4fan)

Fails to build on Manjaro as of 2025-12-16

Building mingw-w64-pcre2...
==> Making package: mingw-w64-pcre2 10.46-1 (Tue 16 Dec 2025 15:59:21 CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating pcre2 git repo...
  -> Updating sljit git repo...
==> Validating source files with sha512sums...
    pcre2 ... Passed
    sljit ... Skipped
==> Validating source files with b2sums...
    pcre2 ... Passed
    sljit ... Skipped
==> Verifying source file signatures with gpg...
    pcre2 git repo ... FAILED (unknown public key A19B9D6B8B6595D4)
==> ERROR: One or more PGP signatures could not be verified!
Failed to build mingw-w64-pcre2

patlefort commented on 2023-07-29 23:19 (UTC)

Does not pass validity check:

==> Validating source files with sha512sums...
    pcre2-10.42.tar.bz2 ... FAILED

basinilya commented on 2021-11-12 07:42 (UTC)

ftp.pcre.org is dead for good. Please switch to Guthub

pkgname=mingw-w64-pcre2
pkgver=10.37
_gitsha=2ae7c30b95d63ecbaff6727eaff7c3a6a3969d56
pkgrel=1
pkgdesc='A library that implements Perl 5-style regular expressions. 2nd version (mingw-w64)'
arch=('any')
url='https://www.pcre.org/'
license=('BSD')
makedepends=(mingw-w64-configure mingw-w64-readline mingw-w64-bzip2 mingw-w64-zlib)
depends=(mingw-w64-crt)
options=(staticlibs !strip !buildflags)
optdepends=(mingw-w64-readline mingw-w64-bzip2 mingw-w64-zlib)

source=("${pkgname##mingw-w64-}::git+https://github.com/PhilipHazel/pcre2.git#tag=$_gitsha"
  )
sha256sums=('SKIP'
  )

_architectures="i686-w64-mingw32 x86_64-w64-mingw32"

prepare() {
  cd "$srcdir/${pkgname##mingw-w64-}"
  autoreconf -i
}

build() {
  cd "$srcdir/${pkgname##mingw-w64-}"
  for _arch in ${_architectures}; do
    mkdir -p build-${_arch} && pushd build-${_arch}
    ${_arch}-configure \
      --enable-jit \
      --enable-pcre2-16 \
      --enable-pcre2-32 \
      --enable-pcre2grep-libz \
      --enable-pcre2grep-libbz2 \
      --enable-pcre2test-libreadline
    make
    popd
  done
}

package() {
  for _arch in ${_architectures}; do
    cd "${srcdir}/${pkgname##mingw-w64-}/build-${_arch}"
    make DESTDIR="$pkgdir" install
    rm -r "$pkgdir/usr/${_arch}/share/"{man,doc}
    find "$pkgdir/usr/${_arch}" -name '*.exe' -exec ${_arch}-strip {} \;
    find "$pkgdir/usr/${_arch}" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \;
    find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs ${_arch}-strip -g
  done
}

xantares commented on 2020-10-19 19:21 (UTC)

hi again, I noticed the /share install folder contains man and doc, it can be removed

tsdgeos commented on 2019-05-09 22:36 (UTC)

I don't seem to have time to maintin this at this point.

Schala commented on 2017-08-31 06:41 (UTC)

That's usually how it goes... Why bring that up?

calegria commented on 2017-08-30 23:37 (UTC) (edited on 2017-08-30 23:37 (UTC) by calegria)

I confirm that the package can be built by just changing the version to 10.30 and updating the md5sums array accordingly.