void-packages/srcpkgs/http-parser/template
2020-04-20 15:46:46 +02:00

32 lines
725 B
Bash

# Template file for 'http-parser'
pkgname=http-parser
version=2.9.4
revision=1
build_style=gnu-makefile
make_build_target=library
short_desc="HTTP request/response parser for c"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MIT"
homepage="https://github.com/joyent/http-parser"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=467b9e30fd0979ee301065e70f637d525c28193449e1b13fbcb1b1fab3ad224f
pre_install() {
vmkdir usr/lib/pkgconfig
vmkdir usr/include
}
post_install() {
vlicense LICENSE-MIT
}
http-parser-devel_package() {
depends="$sourcepkg>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}