44 lines
1 KiB
Text
44 lines
1 KiB
Text
# 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
|
|
"
|