void-packages/srcpkgs/http-parser/template

32 lines
724 B
Bash

# Template file for 'http-parser'
pkgname=http-parser
version=2.9.0
revision=1
build_style=gnu-makefile
make_build_target=library
short_desc="HTTP request/response parser for c"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="MIT"
homepage="https://github.com/joyent/http-parser"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=ef26268c54c8084d17654ba2ed5140bffeffd2a040a895ffb22a6cca3f6c613f
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"
}
}