summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorxantares2015-06-08 22:54:10 +0200
committerxantares2015-06-08 22:54:10 +0200
commit3a0ccc5fe725c8d4f96694337bcdf886c43c1adf (patch)
tree6a0d71379a2be8f310a5602b8e0414894c38c358 /PKGBUILD
downloadaur-3a0ccc5fe725c8d4f96694337bcdf886c43c1adf.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..81681fff02e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+
+pkgname=mingw-w64-libgnurx
+pkgver=2.5.1
+pkgrel=5
+arch=(any)
+pkgdesc="regex functionality from glibc (mingw-w64)"
+depends=('mingw-w64-crt')
+makedepends=('mingw-w64-configure')
+options=('!buildflags' '!strip' 'staticlibs')
+license=('GPL')
+url="http://mingw.sourceforge.net/"
+source=("http://download.sourceforge.net/mingw/Other/UserContributed/regex/mingw-regex-${pkgver}/mingw-libgnurx-${pkgver}-src.tar.gz"
+ "mingw-w64-libgnurx-honor-destdir.patch")
+md5sums=('35c8fed3101ca1f253e9b6b1966661f6'
+ '2d87c59177adf5ec13dbcc02acc4a450')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+prepare()
+{
+ cd "$srcdir/mingw-libgnurx-${pkgver}"
+ patch -Np0 -i ../mingw-w64-libgnurx-honor-destdir.patch
+}
+
+build()
+{
+ cd "$srcdir/mingw-libgnurx-${pkgver}"
+ for _arch in ${_architectures}; do
+ mkdir -p build-${_arch} && pushd build-${_arch}
+ ${_arch}-configure
+ make
+ popd
+ done
+
+}
+
+package()
+{
+ for _arch in ${_architectures}; do
+ cd "$srcdir/mingw-libgnurx-${pkgver}/build-${_arch}"
+ install -d "$pkgdir"/usr/${_arch}/include
+ make install DESTDIR="$pkgdir"
+ ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
+ ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
+ rm -r "$pkgdir"/usr/${_arch}/man
+ done
+}
+