void-packages/srcpkgs/h2o/template
2019-06-14 15:12:09 +02:00

36 lines
828 B
Bash

# Template file for 'h2o'
pkgname=h2o
version=2.2.5
revision=4
build_style=cmake
conf_files="/etc/h2o.conf"
hostmakedepends="pkg-config"
makedepends="libressl-devel libuv-devel zlib-devel"
depends="perl"
short_desc="Optimized HTTP server with support for HTTP/1.x and HTTP/2"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="MIT"
homepage="https://h2o.examp1e.net/"
distfiles="https://github.com/h2o/h2o/archive/v${version}.tar.gz"
checksum=eafb40aa2d93b3de1af472bb046c17b2335c3e5a894462310e1822e126c97d24
system_accounts="h2o"
make_dirs="
/var/log/h2o 0755 h2o h2o
/srv/www/h2o 0755 h2o h2o"
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/*.a
}
}