37 lines
1.0 KiB
Bash
37 lines
1.0 KiB
Bash
# Template file for 'duktape'
|
|
pkgname=duktape
|
|
version=2.2.1
|
|
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="http://duktape.org"
|
|
distfiles="https://github.com/svaarala/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.xz"
|
|
checksum=3abe2eed2553305262b892c98f550bb1a94cf4fd73b51dc5c176fe08e7ade7f2
|
|
|
|
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.
|
|
cd "${DESTDIR}/usr/lib"
|
|
rm libduktaped.*
|
|
}
|
|
|
|
duktape-devel_package() {
|
|
depends="duktape>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|