46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
# Template file for 'gjs'
|
|
pkgname=gjs
|
|
version=1.70.1
|
|
revision=1
|
|
build_style=meson
|
|
build_helper="gir qemu"
|
|
configure_args="-Dprofiler=disabled -Dinstalled_tests=false"
|
|
hostmakedepends="glib-devel pkg-config"
|
|
makedepends="dbus-glib-devel mozjs78-devel readline-devel sysprof-devel"
|
|
checkdepends="xvfb-run"
|
|
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/blob/gnome-41/NEWS"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=bbdc0eec7cf25fbc534769f6a1fb2c7a18e17b871efdb0ca58e9abf08b28003f
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
fi
|
|
|
|
if [ "$XBPS_CHECK_PKGS" ]; then
|
|
hostmakedepends+=" dbus"
|
|
else
|
|
configure_args+=" -Dskip_dbus_tests=true -Dskip_gtk_tests=true"
|
|
fi
|
|
|
|
do_check() {
|
|
xvfb-run ninja -C build test
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|
|
|
|
gjs-devel_package() {
|
|
depends="libgirepository-devel mozjs78-devel ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|