2017-08-05 12:51:54 +02:00
|
|
|
# Template file for 'duktape'
|
|
|
|
pkgname=duktape
|
2017-09-24 14:58:51 +02:00
|
|
|
version=2.2.0
|
2017-08-05 12:51:54 +02:00
|
|
|
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"
|
2017-09-24 14:58:51 +02:00
|
|
|
checksum=62f72206427633077cb02e7ccd2599ace4d254db409334593b86d262c0d50c14
|
2017-08-05 12:51:54 +02:00
|
|
|
|
|
|
|
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="${makedepends} duktape>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/include"
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
}
|
|
|
|
}
|