void-packages/srcpkgs/duktape/template
Érico Rolim 4977dd1e43 duktape: update to 2.6.0.
Also clean up template.
2021-02-08 23:22:44 -03:00

39 lines
1.1 KiB
Bash

# Template file for 'duktape'
pkgname=duktape
version=2.6.0
revision=1
build_style=gnu-makefile
make_build_args="-f Makefile.sharedlibrary"
make_install_args="-f Makefile.sharedlibrary INSTALL_PREFIX=\${DESTDIR}/usr"
short_desc="Embeddable JavaScript engine"
maintainer="Christopher Brannon <chris@the-brannons.com>"
license="MIT"
homepage="https://duktape.org"
distfiles="https://github.com/svaarala/duktape/releases/download/v${version}/${pkgname}-${version}.tar.xz"
checksum=96f4a05a6c84590e53b18c59bb776aaba80a205afbbd92b82be609ba7fe75fa7
post_patch() {
vsed -i 's|^CC.*||g' Makefile.sharedlibrary
}
pre_install() {
vmkdir usr/lib
vmkdir usr/include
}
post_install() {
vlicense LICENSE.txt
# Two libraries were installed, one with debugging symbols, one
# without. Maybe that makes sense on a distro without debug
# splitting, but not on Void. Replace libduktape.
rm ${DESTDIR}/usr/lib/libduktaped.*
}
duktape-devel_package() {
depends="duktape>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}