41 lines
969 B
Bash
41 lines
969 B
Bash
pkgname=libevent
|
|
pkgver=2.1.12
|
|
pkgdesc="Event notification library"
|
|
homepage="https://libevent.org/"
|
|
arch=(x86_64)
|
|
license=(BSD-3-Clause-Modification)
|
|
sources=("${pkgname}-${pkgver}-stable.tar.gz"
|
|
"libevent-2.1.12-openssl-compat.patch"
|
|
)
|
|
urls=("https://github.com/libevent/libevent/releases/download/release-${pkgver}-stable/${sources[0]}"
|
|
"libevent-2.1.12-openssl-compat.patch"
|
|
)
|
|
md5sums=("b5333f021f880fe76490d8a799cd79f4"
|
|
"09ad6d62f6d7861c20df28a8a0ede1e0"
|
|
)
|
|
|
|
src_prepare() {
|
|
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
|
patch -p1 -i ${filedir}/${sources[1]}
|
|
sed -i 's/python/&3/' event_rpcgen.py
|
|
}
|
|
|
|
src_build() {
|
|
./configure --prefix=/usr \
|
|
--disable-static \
|
|
--disable-libevent-regress # skip regress tests, following Arch
|
|
make
|
|
}
|
|
|
|
src_check() {
|
|
make verify
|
|
}
|
|
|
|
src_install() {
|
|
make DESTDIR="${pkgdir}" install
|
|
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE
|
|
}
|
|
|
|
|
|
# vim:ft=sh syn=sh et sw=2:
|