blob: e889e2ab341b4149e7d44494036815ad59363c94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Tony Lambiris <tony@criticalstack.com>
pkgname=libevhtp-git
pkgver=1.2.12.1.r42.g2307737
pkgrel=1
pkgdesc="A replacement API for Libevent's current HTTP API."
arch=('i686' 'x86_64')
url="https://github.com/criticalstack/libevhtp"
license=('BSD')
depends=('git')
makedepends=('gcc' 'libevent' 'openssl-1.0')
source=("${pkgname}::git+https://github.com/criticalstack/libevhtp.git#branch=develop")
sha256sums=('SKIP')
pkgver() {
cd "${pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${pkgname}/build"
cmake -Wno-dev .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DOPENSSL_INCLUDE_DIR="/usr/include/openssl-1.0"
make ${MAKEFLAGS} all
}
package() {
cd "${pkgname}/build"
make DESTDIR="${pkgdir}" install
}
|