void-packages/srcpkgs/h2o/template

53 lines
1.2 KiB
Bash

# Template file for 'h2o'
pkgname=h2o
version=2.2.6
revision=4
build_style=cmake
conf_files="/etc/h2o.conf"
configure_args="-DWITH_BUNDLED_SSL=OFF"
make_check_target=check
hostmakedepends="pkg-config"
makedepends="openssl-devel libuv-devel zlib-devel libyaml-devel"
depends="perl"
checkdepends="perl-Test-TCP perl-Test-Exception perl-URI perl-Path-Tiny
perl-Scope-Guard curl wget netcat"
short_desc="Optimized HTTP server with support for HTTP/1.x and HTTP/2"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://h2o.examp1e.net/"
distfiles="https://github.com/h2o/h2o/archive/v${version}.tar.gz"
checksum=f8cbc1b530d85ff098f6efc2c3fdbc5e29baffb30614caac59d5c710f7bda201
system_accounts="h2o"
make_dirs="
/var/log/h2o 0755 h2o h2o
/srv/www/h2o 0755 h2o h2o"
pre_check() {
local t
export PERL5LIB="${wrksrc}"
for t in 40proxy-protocol 50access-log 50http2_debug_state \
50internal-redirect 50servername 50status \
80invalid-h2-chars-in-headers
do
rm -f t/${t}.t
done
}
post_install() {
vsv h2o
vconf ${FILESDIR}/h2o.conf
vlicense LICENSE
}
h2o-devel_package() {
short_desc+=" - development files"
depends="${makedepends}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
}
}