[build] type = "makefile" [build.flags] makefile_commands = ["make -f Makefile.sharedlibrary INSTALL_PREFIX=/usr"] makefile_install_commands = ["make -f Makefile.sharedlibrary INSTALL_PREFIX=/usr DESTDIR=$DESTDIR install"] [dependencies] runtime = ["glibc"] [package] description = "Embeddable Javascript engine" homepage = "https://duktape.org/" license = "MIT" name = "duktape" version = "2.7.0" [[source]] extract_dir = "$name-$version" sha256 = "90f8d2fa8b5567c6899830ddef2c03f3c27960b11aca222fa17aa7ac613c2890" url = "https://duktape.org/duktape-$version.tar.xz" post_extract = [ '''sed -i 's/^#undef DUK_USE_FASTINT$/#define DUK_USE_FASTINT/' src/duk_config.h''', '''sed -i 's/duktape\.c/& -lm/' Makefile.sharedlibrary''' ]