aboutsummaryrefslogtreecommitdiffstats
path: root/community/gjs/APKBUILD
blob: 815a36d69523a338879fb3bc3b94d95d9a99944c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gjs
pkgver=1.68.4
pkgrel=1
pkgdesc="GNOME javascript library"
url="https://wiki.gnome.org/Projects/Gjs"
# s390x, mips64 and riscv64 blocked by mozjs78
arch="all !s390x !mips64 !riscv64"
license="MIT AND LGPL-2.0-or-later"
makedepends="dbus gobject-introspection-dev mozjs78-dev mozjs78
	gtk+3.0-dev cairo-dev meson libffi>=3.3"
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 meson test -C output -t 10
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
c610abfa701c0a61ffa6916ec5ebcd07b1dcb04607d74ab0b6d30583da27d60f9993e037fab73e66e1580d644d3a57f0a479f55a09e3bf56fea7f17367c787b3  gjs-1.68.4.tar.xz
"