From 9dfd8fb513594bde0c06db1a79afe14565950f29 Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Thu, 29 Apr 2021 20:03:01 +0200 Subject: [PATCH] duktape-bin: init at 2.6.0 --- sakamoto/duktape-bin/APKBUILD | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 sakamoto/duktape-bin/APKBUILD diff --git a/sakamoto/duktape-bin/APKBUILD b/sakamoto/duktape-bin/APKBUILD new file mode 100644 index 0000000..0023749 --- /dev/null +++ b/sakamoto/duktape-bin/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Patrycja Rosa +# Maintainer: Patrycja Rosa +pkgname=duktape-bin +pkgver=2.6.0 +pkgrel=0 +pkgdesc="Embeddable Javascript engine with a focus on portability and compact footprint" +url="https://duktape.org" +arch="all" +license="MIT" +options="!check" # no tests in release archive +subpackages="" +makedepends="git python2" +source="duktape-$pkgver.tar.gz::https://github.com/svaarala/duktape/archive/refs/tags/v$pkgver.tar.gz" +builddir="$srcdir/duktape-$pkgver" + +build() { + python -m ensurepip --user + ~/.local/bin/pip install --user pyaml + make +} + +package() { + install -Dm755 "duk" "$pkgdir/usr/bin/duk" +} + +sha512sums="666db27dbe2721bbf896b62d98ef0e934681dc723d27d52402d845cdf01c931e36bf7dffac6ec86da649fb86ec051b0bb662740b13509efc2a794cfcff2660bc duktape-2.6.0.tar.gz"