void-packages/srcpkgs/http-parser/template
2018-03-31 14:11:23 +02:00

31 lines
722 B
Bash

# Template file for 'http-parser'
pkgname=http-parser
version=2.8.1
revision=1
build_style=gnu-makefile
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=51615f68b8d67eadfd2482decc63b3e55d749ce0055502bbb5b0032726d22d96
make_build_target=library
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"
}
}