41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# Template file for 'llhttp'
|
|
|
|
# When this package is updated, nodejs and nodejs-lts may need to be updated
|
|
# or at least a revbump in the same pull request since they work in-sync.
|
|
|
|
pkgname=llhttp
|
|
version=2.1.3
|
|
revision=1
|
|
wrksrc="llhttp-release-v${version}"
|
|
build_style=gnu-makefile
|
|
short_desc="Port of http_parser to llparse"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
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"
|
|
checksum=5d0d0a96a97f74678dc03077488103ae72b04d142524525514ce774288849703
|
|
|
|
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"
|
|
}
|
|
}
|