# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=gjs pkgver=1.64.0 pkgrel=1 pkgdesc="GNOME javascript library" url="https://wiki.gnome.org/Projects/Gjs" arch="all !s390x" license="MIT AND LGPL-2.0-or-later" makedepends="dbus gobject-introspection-dev mozjs68-dev mozjs68 gtk+3.0-dev cairo-dev meson" checkdepends="xvfb-run" options="!check" # testCommandLine.sh fails subpackages="$pkgname-dev" source="https://download.gnome.org/sources/gjs/${pkgver%.*}/gjs-$pkgver.tar.xz" build() { meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ -Dprofile=disabled \ -Dinstalled_tests=false \ output ninja -C output } check() { xvfb-run ninja -C output test } package() { DESTDIR="$pkgdir" ninja -C output install } sha512sums="93d5417ebb74db16c3a943799fd1ef28e2a964ba8806944077c331458b312e99a880bec1ededcdc266510deced20f936cb47f3158907dc7ef760703ee8eabda7 gjs-1.64.0.tar.xz"