Date: Thursday, February 22, 2018 @ 23:51:13
  Author: svenstaro
Revision: 297158

Add lib32-libevent

Added:
  lib32-libevent/
  lib32-libevent/repos/
  lib32-libevent/trunk/
  lib32-libevent/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Added: lib32-libevent/trunk/PKGBUILD
===================================================================
--- lib32-libevent/trunk/PKGBUILD                               (rev 0)
+++ lib32-libevent/trunk/PKGBUILD       2018-02-22 23:51:13 UTC (rev 297158)
@@ -0,0 +1,40 @@
+# Maintainer: Sven-Hendrik Haase <svenst...@gmail.com>
+# Contributor: Tom Gundersen <t...@jklm.no>
+# Contributor: Judd <jvi...@zeroflux.org>
+
+pkgname=lib32-libevent
+pkgver=2.1.8
+pkgrel=1
+pkgdesc="An event notification library (32-bit)"
+arch=('x86_64')
+url="http://libevent.org/";
+license=('BSD')
+depends=('openssl')
+optdepends=('python2: to use event_rpcgen.py')
+source=(https://github.com/libevent/libevent/releases/download/release-$pkgver-stable/$pkgname-$pkgver-stable.tar.gz{,.asc})
+sha256sums=('965cc5a8bb46ce4199a47e9b2c9e1cae3b137e8356ffdad6d94d3b9069b71dc2'
+            'SKIP')
+validpgpkeys=('B35BF85BF19489D04E28C33C21194EBB165733EA'
+              '9E3AC83A27974B84D1B3401DB86086848EF8686D')
+
+build() {
+  export CC="gcc -m32"
+       export CXX="g++ -m32"
+       export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+  cd ${pkgname}-${pkgver}-stable
+  ./autogen.sh
+  ./configure --prefix=/usr --sysconfdir=/etc --disable-libevent-regress 
--libdir=/usr/lib32
+  make
+}
+
+check() {
+  cd ${pkgname}-${pkgver}-stable
+  make -j1 check
+}
+
+package() {
+  cd ${pkgname}-${pkgver}-stable
+  make DESTDIR="${pkgdir}" install
+  install -Dm 644 LICENSE "${pkgdir}"/usr/share/licenses/libevent/LICENSE
+}

Reply via email to