void-packages/srcpkgs/llhttp/template

37 lines
1.0 KiB
Bash
Raw Normal View History

2019-01-09 00:00:33 +01:00
# Template file for 'llhttp'
pkgname=llhttp
2019-01-29 02:13:13 +01:00
version=1.1.1
2019-01-09 00:00:33 +01:00
revision=1
wrksrc="llhttp-release-v${version}"
build_style=gnu-makefile
short_desc="Port of http_parser to llparse"
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
license="MIT"
homepage="https://llhttp.org/"
# _always_ use releases. Those have the C code generated, otherwise
# we'd have a dep loop nodejs<->llhttp
distfiles="https://github.com/nodejs/llhttp/archive/release/v${version}.tar.gz"
2019-01-29 02:13:13 +01:00
checksum=579a81e1e56088470a121e308127f205e22b8988b944b5f36b2a11c1724590d4
2019-01-09 00:00:33 +01:00
post_extract() {
# No need to pull in gyp for such a simple Makefile...
cp ${FILESDIR}/Makefile ${wrksrc}
}
do_install() {
vinstall libllhttp.so.1.0 755 /usr/lib
ln -s libllhttp.so.1.0 ${DESTDIR}/usr/lib/libllhttp.so.1
ln -s libllhttp.so.1 ${DESTDIR}/usr/lib/libllhttp.so
vcopy include /usr
vlicense LICENSE-MIT
}
llhttp-devel_package() {
short_desc="- development files"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}