diff options
author | Britney Fransen <brfransen@gmail.com> | 2020-06-07 03:07:39 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2020-06-07 03:07:39 (GMT) |
commit | cb1c436a1089b7f51def3600d8cde83ccefa682b (patch) | |
tree | 81a75f8a06fcc5f56c56e487af828ed12951d0ad /abs/core/libevent/PKGBUILD | |
parent | 90771986bdacea89ecc05d7755a0927323e9d3f1 (diff) | |
download | linhes_pkgbuild-cb1c436a1089b7f51def3600d8cde83ccefa682b.zip linhes_pkgbuild-cb1c436a1089b7f51def3600d8cde83ccefa682b.tar.gz linhes_pkgbuild-cb1c436a1089b7f51def3600d8cde83ccefa682b.tar.bz2 |
libevent: update 2.1.11
Diffstat (limited to 'abs/core/libevent/PKGBUILD')
-rw-r--r-- | abs/core/libevent/PKGBUILD | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/abs/core/libevent/PKGBUILD b/abs/core/libevent/PKGBUILD index c7251c5..96e8793 100644 --- a/abs/core/libevent/PKGBUILD +++ b/abs/core/libevent/PKGBUILD @@ -1,36 +1,46 @@ -# $Id$ # Maintainer: Tom Gundersen <teg@jklm.no> # Contributor: Judd <jvinet@zeroflux.org> pkgname=libevent -pkgver=2.1.8 -pkgrel=1 +pkgver=2.1.11 +pkgrel=5 pkgdesc="An event notification library" arch=('x86_64') -url="http://libevent.org/" +url="https://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') +makedepends=('cmake' 'python') +optdepends=('python: to use event_rpcgen.py') +source=(https://github.com/libevent/libevent/releases/download/release-$pkgver-stable/$pkgname-$pkgver-stable.tar.gz{,.asc} + https://raw.githubusercontent.com/libevent/libevent/release-2.1.11-stable/cmake/Uninstall.cmake.in + 0001-Warn-if-forked-from-the-event-loop-during-event_reinit.patch) +sha256sums=('a65bac6202ea8c5609fd5c7e480e6d25de467ea1917c08290c521752f147283d' + 'SKIP' + '1584d6e36642d930ac99d014a485fe886ec705b3f998d128c6d6f227e0454b72' + '436e56c74c0af0b70c43eaae6bd32b760601d2d5fa98b8d2d026ffad18474e13') validpgpkeys=('B35BF85BF19489D04E28C33C21194EBB165733EA' '9E3AC83A27974B84D1B3401DB86086848EF8686D') +prepare() { + cd ${pkgname}-${pkgver}-stable + patch -Np1 -R < ../0001-Warn-if-forked-from-the-event-loop-during-event_reinit.patch + + cp -n ../Uninstall.cmake.in cmake # https://github.com/libevent/libevent/issues/914 +} + build() { cd ${pkgname}-${pkgver}-stable - ./autogen.sh - ./configure --prefix=/usr --sysconfdir=/etc --disable-libevent-regress - make + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DEVENT__LIBRARY_TYPE=SHARED -S . -B build + cmake --build build } check() { cd ${pkgname}-${pkgver}-stable - make -j1 check + cmake --build build --target test } package() { cd ${pkgname}-${pkgver}-stable - make DESTDIR="${pkgdir}" install + cmake --build build --target install -- DESTDIR="$pkgdir" install -Dm 644 LICENSE "${pkgdir}"/usr/share/licenses/libevent/LICENSE } |