Package Details: mingw-w64-pcre2 10.39-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://www.pcre.org/
Keywords: mingw mingw-w64 mingw-w64-pcre pcre pcre2
Licenses: BSD
Submitter: Schala
Maintainer: Martchus
Last Packager: Martchus
Votes: 7
Popularity: 0.70
First Submitted: 2017-02-25 10:59
Last Updated: 2021-11-13 16:28

Latest Comments

basinilya commented on 2021-11-12 07:42

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

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

tsdgeos commented on 2019-05-09 22:36

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

Schala commented on 2017-08-31 06:41

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

calegria commented on 2017-08-30 23:37

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