aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/gjs/template
blob: 23c7350a11aa9dc6d18e363b7165d66dce9e7f97 (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
38
39
# Template file for 'gjs'
pkgname=gjs
version=1.78.4
revision=1
build_style=meson
build_helper="gir qemu"
configure_args="-Dprofiler=disabled -Dinstalled_tests=false"
hostmakedepends="glib-devel pkg-config icu-libs"
makedepends="dbus-glib-devel mozjs115-devel readline-devel sysprof-devel"
checkdepends="xvfb-run cantarell-fonts"
short_desc="Mozilla-based javascript bindings for the GNOME platform"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MIT, LGPL-2.0-or-later"
homepage="https://gitlab.gnome.org/GNOME/gjs"
#changelog="https://gitlab.gnome.org/GNOME/gjs/-/raw/master/NEWS"
changelog="https://gitlab.gnome.org/GNOME/gjs/-/raw/gnome-44/NEWS"
distfiles="${GNOME_SITE}/gjs/${version%.*}/gjs-${version}.tar.xz"
checksum=9aec7ab872c2050404907ae94f0ae7abec8a54bd9c894ddb5c2d0f51e932b9a1
make_check_pre="xvfb-run"

if [ "$XBPS_CHECK_PKGS" ]; then
	hostmakedepends+=" dbus"
else
	configure_args+=" -Dskip_dbus_tests=true -Dskip_gtk_tests=true"
fi

post_install() {
	vlicense COPYING
}

gjs-devel_package() {
	depends="libgirepository-devel mozjs115-devel ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}