41 lines
1.0 KiB
Bash
41 lines
1.0 KiB
Bash
# Template file for 'duktape'
|
|
pkgname=duktape
|
|
version=2.7.0
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_build_args="-f Makefile.sharedlibrary"
|
|
make_install_args="-f Makefile.sharedlibrary INSTALL_PREFIX=/usr"
|
|
short_desc="Embeddable JavaScript engine"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://duktape.org"
|
|
distfiles="https://duktape.org/duktape-${version}.tar.xz"
|
|
checksum=90f8d2fa8b5567c6899830ddef2c03f3c27960b11aca222fa17aa7ac613c2890
|
|
|
|
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="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|