jobcore/libevent/PKGBUILD

44 lines
1.4 KiB
Text
Raw Normal View History

2022-03-20 13:19:37 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libevent
pkgver=2.1.12
pkgrel=01
pkgdesc="An event notification library"
arch=('x86_64')
url="https://libevent.org/"
depends=('openssl')
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})
build() {
cd ${pkgname}-${pkgver}-stable
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DEVENT__LIBRARY_TYPE=SHARED -S . -B build
cmake --build build
}
#check() {
# cd ${pkgname}-${pkgver}-stable
# cmake --build build --target test
#}
package() {
cd ${pkgname}-${pkgver}-stable
cmake --build build --target install -- DESTDIR="$pkgdir"
install -Dm 644 LICENSE "${pkgdir}"/usr/share/licenses/libevent/LICENSE
}
#---- license gpg-key sha256sums ----
license=('BSD')
validpgpkeys=('B35BF85BF19489D04E28C33C21194EBB165733EA'
'9E3AC83A27974B84D1B3401DB86086848EF8686D')
sha256sums=(92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb # libevent-2.1.12-stable.tar.gz
3cd3d764777540305813495912cd5f7ea7d16edb456d6c88b331a1aa8974dfc2) # libevent-2.1.12-stable.tar.gz.asc