From db71a9aa46edcac5b46d47a06ede552d293ccaa9 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 16 Apr 2021 18:30:42 +0200 Subject: [PATCH] New package: quickjs-2021.03.27 --- srcpkgs/quickjs-devel | 1 + srcpkgs/quickjs/template | 43 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 120000 srcpkgs/quickjs-devel create mode 100644 srcpkgs/quickjs/template diff --git a/srcpkgs/quickjs-devel b/srcpkgs/quickjs-devel new file mode 120000 index 00000000000..b434e01a410 --- /dev/null +++ b/srcpkgs/quickjs-devel @@ -0,0 +1 @@ +quickjs \ No newline at end of file diff --git a/srcpkgs/quickjs/template b/srcpkgs/quickjs/template new file mode 100644 index 00000000000..658145aa4da --- /dev/null +++ b/srcpkgs/quickjs/template @@ -0,0 +1,43 @@ +# Template file for 'quickjs' +pkgname=quickjs +version=2021.03.27 +revision=1 +wrksrc="${pkgname}-${version//./-}" +build_style=gnu-makefile +make_use_env=true +make_build_args="CONFIG_LTO= prefix=/usr" +make_install_args="${make_build_args}" +short_desc="Small and embeddable Javascript engine" +maintainer="Leah Neukirchen " +license="MIT" +homepage="https://bellard.org/quickjs/" +distfiles="https://bellard.org/quickjs/quickjs-${version//./-}.tar.xz" +checksum=a45bface4c3379538dea8533878d694e289330488ea7028b105f72572fe7fe1a + +if [ "$CROSS_BUILD" ]; then + make_build_args+=" CROSS_PREFIX=${XBPS_CROSS_TRIPLET}-" + make_install_args="${make_build_args}" +fi + +pre_configure() { + vsed -i -e '/HOST_CC/s/CFLAGS_OPT/BUILD_CFLAGS/' Makefile + cat >>Makefile <