aboutsummaryrefslogtreecommitdiffstats
path: root/community/gjs/APKBUILD
blob: 9c93634bd3292f85cacf1e88ae510a7cd7e2cfb9 (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.1
pkgrel=0
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="
bce2f84e748dd483e0c907e7f7f230257aa4b216b76e89c3457ebba5e9bf601dcb5c771ebe864df22255e221876c6e7ee3097328e6f52ef78360f49708ff457a  gjs-1.68.1.tar.xz
"