summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSchala2017-02-25 02:59:16 -0800
committerSchala2017-02-25 02:59:16 -0800
commit091bbabdf1aee14415b1d582c95ba59cb0bd1318 (patch)
treea9b3493faa3ae68979917aef718dc2c29d11fc5c
downloadaur-091bbabdf1aee14415b1d582c95ba59cb0bd1318.tar.gz
init
-rw-r--r--.SRCINFO25
-rw-r--r--.gitignore6
-rw-r--r--PKGBUILD42
3 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b46608dc392
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+# Generated by mksrcinfo v8
+# Sat Feb 25 10:59:04 UTC 2017
+pkgbase = mingw-w64-pcre2
+ pkgdesc = A library that implements Perl 5-style regular expressions. 2nd version (mingw-w64)
+ pkgver = 10.22
+ pkgrel = 1
+ url = http://www.pcre.org/
+ arch = any
+ license = BSD
+ makedepends = mingw-w64-configure
+ makedepends = mingw-w64-readline
+ makedepends = mingw-w64-bzip2
+ makedepends = mingw-w64-zlib
+ depends = mingw-w64-crt
+ optdepends = mingw-w64-readline
+ optdepends = mingw-w64-bzip2
+ optdepends = mingw-w64-zlib
+ options = staticlibs
+ options = !strip
+ options = !buildflags
+ source = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-10.22.tar.bz2
+ md5sums = c0c02517938ee2b0d350d53edf450664
+
+pkgname = mingw-w64-pcre2
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..8f9db33ca33
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+pkg/
+src/
+*.bz2
+*.log
+*.tar
+*.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0f42ce5ef57
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+pkgname=mingw-w64-pcre2
+pkgver=10.22
+pkgrel=1
+pkgdesc=" A library that implements Perl 5-style regular expressions. 2nd version (mingw-w64)"
+arch=(any)
+url="http://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=("ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-$pkgver.tar.bz2")
+md5sums=('c0c02517938ee2b0d350d53edf450664')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+build() {
+ cd "$srcdir/pcre2-$pkgver"
+ for _arch in ${_architectures}; do
+ unset LDFLAGS
+ 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}/pcre2-$pkgver/build-${_arch}"
+ make DESTDIR="$pkgdir" install
+ 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
+}