summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjulienCXX2015-08-14 14:55:20 +0200
committerjulienCXX2015-08-14 14:55:20 +0200
commit5a18b86b0055dcd850118c834fb6c96483437f8a (patch)
tree4165884f0a72342df10376850fb70b1916a9ae51
downloadaur-5a18b86b0055dcd850118c834fb6c96483437f8a.tar.gz
Initial import from AUR3
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD39
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4e9b5347001
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = mingw-w64-libevent
+ pkgdesc = An event notification library (mingw-w64)
+ pkgver = 2.0.21
+ pkgrel = 2
+ url = http://www.monkey.org/~provos/libevent
+ arch = any
+ license = BSD
+ makedepends = mingw-w64-gcc
+ makedepends = mingw-w64-pkg-config
+ depends = mingw-w64-crt
+ depends = mingw-w64-openssl
+ options = !libtool
+ options = !strip
+ options = !buildflags
+ source = https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
+ md5sums = b2405cc9ebf264aa47ff615d9de527a2
+
+pkgname = mingw-w64-libevent
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ade41bea02a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: julienCXX <archlinux@chmodplusx.eu>
+
+pkgname=mingw-w64-libevent
+pkgver=2.0.21
+pkgrel=2
+pkgdesc="An event notification library (mingw-w64)"
+arch=(any)
+url="http://www.monkey.org/~provos/libevent"
+license=("BSD")
+makedepends=(mingw-w64-gcc mingw-w64-pkg-config)
+depends=(mingw-w64-crt mingw-w64-openssl)
+options=(!libtool !strip !buildflags)
+source=("https://github.com/downloads/libevent/libevent/libevent-$pkgver-stable.tar.gz")
+md5sums=('b2405cc9ebf264aa47ff615d9de527a2')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+build() {
+ for _arch in ${_architectures}; do
+ unset LDFLAGS
+ mkdir -p "${srcdir}/${pkgname}-${pkgver}-build-${_arch}"
+ cd "${srcdir}/${pkgname}-${pkgver}-build-${_arch}"
+ ${srcdir}/${pkgname#mingw-w64-}-${pkgver}-stable/configure \
+ --prefix=/usr/${_arch} \
+ --build=$CHOST \
+ --host=${_arch}
+ make
+ done
+}
+
+package() {
+ for _arch in ${_architectures}; do
+ cd "${srcdir}/${pkgname}-${pkgver}-build-${_arch}"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir/usr/${_arch}" -name '*.exe' -o -name '*.bat' -o -name '*.def' -o -name '*.exp' -o -name '*.py' | xargs -rtl1 rm
+ find "$pkgdir/usr/${_arch}" -name '*.dll' | xargs -rtl1 ${_arch}-strip --strip-unneeded
+ find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs -rtl1 ${_arch}-strip -g
+ done
+}