duktape: update to 2.6.0.

Also clean up template.
This commit is contained in:
Érico Rolim 2021-02-02 12:32:43 -03:00 committed by Érico Nogueira Rolim
parent 8f42c34b51
commit 4977dd1e43
2 changed files with 10 additions and 11 deletions

View File

@ -3053,7 +3053,7 @@ libbrotlienc.so.1 brotli-1.0.2_1
libfilteraudio.so filter_audio-0.0.1_1
libgstreamermm-1.0.so.1 gstreamermm-1.8.0_1
libmovit.so.8 movit-1.6.0_1
libduktape.so.204 duktape-2.4.0_1
libduktape.so.206 duktape-2.6.0_1
libccgnu2-1.8.so.0 commoncpp2-1.8.1_1
libccext2-1.8.so.0 commoncpp2-1.8.1_1
libucommon.so.8 ucommon-7.0.0_1

View File

@ -1,6 +1,6 @@
# Template file for 'duktape'
pkgname=duktape
version=2.4.0
version=2.6.0
revision=1
build_style=gnu-makefile
make_build_args="-f Makefile.sharedlibrary"
@ -8,17 +8,17 @@ 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=86a89307d1633b5cedb2c6e56dc86e92679fc34b05be551722d8cc69ab0771fc
homepage="https://duktape.org"
distfiles="https://github.com/svaarala/duktape/releases/download/v${version}/${pkgname}-${version}.tar.xz"
checksum=96f4a05a6c84590e53b18c59bb776aaba80a205afbbd92b82be609ba7fe75fa7
pre_build() {
sed -i 's|^CC.*||g' Makefile.sharedlibrary
post_patch() {
vsed -i 's|^CC.*||g' Makefile.sharedlibrary
}
pre_install() {
vmkdir /usr/lib
vmkdir /usr/include
vmkdir usr/lib
vmkdir usr/include
}
post_install() {
@ -26,8 +26,7 @@ post_install() {
# 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.*
rm ${DESTDIR}/usr/lib/libduktaped.*
}
duktape-devel_package() {