Date: Tuesday, December 27, 2022 @ 15:40:13 Author: heftig Revision: 1368846
2.7.0-5: Install correct config header, add missing NEEDED Modified: duktape/trunk/PKGBUILD ----------+ PKGBUILD | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-12-27 14:10:04 UTC (rev 1368845) +++ PKGBUILD 2022-12-27 15:40:13 UTC (rev 1368846) @@ -2,7 +2,7 @@ pkgname=duktape pkgver=2.7.0 -pkgrel=4 +pkgrel=5 pkgdesc='Embeddable Javascript engine' url='https://duktape.org/' arch=(x86_64) @@ -16,13 +16,21 @@ # https://duktape.org/download.html md5sums=('b3200b02ab80125b694bae887d7c1ca6') +prepare() { + cd $pkgname-$pkgver + + # tools/configure.py needs Python 2 + sed -i 's/^#undef DUK_USE_FASTINT$/#define DUK_USE_FASTINT/' src/duk_config.h + + # Add missing NEEDED on libm.so + sed -i 's/duktape\.c/& -lm/' Makefile.sharedlibrary +} + _make() ( make -f Makefile.sharedlibrary INSTALL_PREFIX=/usr "$@" ) build() { - CFLAGS="$CFLAGS -DDUK_USE_FASTINT" - cd $pkgname-$pkgver _make }
