From c5051fecfcfe7d05134b490346c11ae96fe81dc3 Mon Sep 17 00:00:00 2001 From: Caleb Connolly Date: Sun, 4 Sep 2022 17:05:09 +0100 Subject: [PATCH] temp/gjs: temporarily fork to upgrade for gnome-mobile (MR 3404) --- temp/gjs/APKBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 temp/gjs/APKBUILD diff --git a/temp/gjs/APKBUILD b/temp/gjs/APKBUILD new file mode 100644 index 000000000..d6bbe9729 --- /dev/null +++ b/temp/gjs/APKBUILD @@ -0,0 +1,44 @@ +# Forked from Alpine to rebuild against mozjs102 and upgrade + +pkgname=gjs +pkgver=1.73.2 +pkgrel=0 +pkgdesc="GNOME javascript library" +url="https://wiki.gnome.org/Projects/Gjs" +# armhf, s390x, and riscv64 blocked by mozjs102 +arch="all !armhf !s390x !riscv64" +license="MIT AND LGPL-2.0-or-later" +makedepends=" + cairo-dev + dbus + gobject-introspection-dev + gtk+3.0-dev + libffi>=3.3 + meson + mozjs102-dev + " +checkdepends="xvfb-run" +subpackages="$pkgname-dev" +options="!check" # test suite does not always pass on all architectures +source="https://download.gnome.org/sources/gjs/${pkgver%.*}/gjs-$pkgver.tar.xz" + +build() { + abuild-meson \ + -Dprofiler=disabled \ + -Dinstalled_tests=false \ + output + meson compile ${JOBS:+-j ${JOBS}} -C output +} + +check() { + # Tests can take a while on armv7 + xvfb-run -a meson test -C output -t 10 +} + +package() { + DESTDIR="$pkgdir" meson install --no-rebuild -C output +} + +sha512sums=" +273adf42e5359e716ec158377539a2d41c515969f257a502bf5a9bdb75e16e24ace9296026974d24c6294a261e22a3524697f27f640a0aad381fb2bcf512b7bf gjs-1.73.2.tar.xz +"