diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-10-19 10:28:50 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-10-19 10:28:50 +0000 |
commit | 8a2f1f4c51475b63fced745139533141f3671abc (patch) | |
tree | b1010e1002e3328acf7b3d592c22a217903f20a7 /testing/mozjs60/APKBUILD | |
parent | 29cb94572ac61f5896a8e594497f1703295709d7 (diff) | |
download | aports-8a2f1f4c51475b63fced745139533141f3671abc.tar.bz2 aports-8a2f1f4c51475b63fced745139533141f3671abc.tar.xz |
testing/mozjs60: new aport
needed by gjs-1.54
Diffstat (limited to 'testing/mozjs60/APKBUILD')
-rw-r--r-- | testing/mozjs60/APKBUILD | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/testing/mozjs60/APKBUILD b/testing/mozjs60/APKBUILD new file mode 100644 index 0000000000..c9977ba60c --- /dev/null +++ b/testing/mozjs60/APKBUILD @@ -0,0 +1,58 @@ +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=mozjs60 +pkgver=60.0.2 +pkgrel=0 +pkgdesc="standalone mozilla javascript engine" +url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/38" +arch="all !armhf !armv7" +license="LGPL" +depends="" +depends_dev="icu-dev nspr-dev libffi-dev readline-dev" +makedepends="$depends_dev python2 perl sed autoconf2.13 linux-headers" +subpackages="$pkgname-dev" +source="https://ftp.mozilla.org/pub/firefox/releases/${pkgver}esr/source/firefox-${pkgver}esr.source.tar.xz + 0001-silence-sandbox-violations.patch + add-exposeToActiveJS.patch + fix-musl-build.patch + fix-soname-lib.patch + " +builddir="$srcdir"/firefox-$pkgver +_builddir="$builddir/js/src" + +build() { + cd "$_builddir" + + # avoid complains about autoconf + touch configure + + SHELL=/bin/ash PYTHON=/usr/bin/python2 ./configure --prefix=/usr \ + --with-system-icu \ + --with-system-nspr \ + --with-system-zlib \ + --with-intl-api \ + --enable-ctypes \ + --enable-shared-js \ + --enable-readline \ + --enable-system-ffi \ + --disable-optimize \ + --disable-jemalloc \ + --enable-pie + make +} + +check() { + cd "$_builddir" + dist/bin/jsapi-tests +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install + rm -f "$pkgdir"/usr/lib/*.ajs +} + +sha512sums="c147517e37ecb6340dab29f4bcbaeb18450eda0fbd2bdfda1ab0c160de9ad33572113866c1ed4feba6a77bec432a2e02fb5cbcceb73e4a45ceef308f04d2b836 firefox-60.0.2esr.source.tar.xz +adaacd6e087a07bd4ded598f6a66ee00c67c9092bb93d88729668516f6f00f497ad8ece1866680e6c371e4705e0f9194ade41ea3a986f793bd972c92029cf03a 0001-silence-sandbox-violations.patch +7ad9dbd07a74673d0f531c1cf1aad05a169126321007ea231b3a9f090e018e681da0d16a33d662245fd0bb10e8feb2a4a282683d6e9a2307d70fdcfb2a321387 add-exposeToActiveJS.patch +bc91c2fb15eb22acb8acc36d086fb18fbf6f202b4511d138769b5ecaaed4a673349c55f808270c762616fafa42e3b01e74dc0af1dcbeea1289e043926e2750c8 fix-musl-build.patch +4782794a0f409f767293fb5f61a9ad58985e05197538975ed8f7372bfae6921a3b9bcbbbfcf8ce2843cdfe8ee799d08cee71a6391ed5ae939f051d13038b0960 fix-soname-lib.patch" |