# Contributor: Aaron Lindsay # Maintainer: Edvinas Valatka _pkgname=libevhtp pkgname="${_pkgname}"-seafile pkgver=1.2.9 pkgrel=8 pkgdesc="A more flexible replacement for libevent's httpd API. [Built for seafile]" arch=('i686' 'x86_64' 'armv5te' 'armv6h' 'armv7h') url="https://github.com/ellzey/libevhtp" license=('BSD') depends=('libevent>=2.0.0' 'oniguruma') makedepends=('cmake') provides=('libevhtp') conflicts=('libevhtp') source=("${_pkgname}-${pkgver}.zip::https://github.com/ellzey/libevhtp/archive/${pkgver}.zip") build () { cd "${srcdir}/${_pkgname}-${pkgver}" cmake -DCMAKE_INSTALL_PREFIX=/usr -DHAS_SYS_ONIG:FILEPATH="" -DEVHTP_DISABLE_SSL=ON -DEVHTP_BUILD_SHARED=ON ./ make } package () { cd "${srcdir}/${_pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install rm -fv ${pkgdir}/usr/include/onigposix.h install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE } sha256sums=('fc8572823ae7ed77cd0db8fd0e25983ebc770b271d36905fb1379db371aab28a')