47 lines
1.3 KiB
Bash
47 lines
1.3 KiB
Bash
# Template file for 'gjs'
|
|
pkgname=gjs
|
|
version=1.56.2
|
|
revision=1
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="--without-dbus-tests"
|
|
hostmakedepends="glib-devel pkg-config"
|
|
makedepends="dbus-glib-devel mozjs60-devel readline-devel"
|
|
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://wiki.gnome.org/action/show/Projects/Gjs"
|
|
changelog="https://gitlab.gnome.org/GNOME/gjs/blob/gnome-3-30/NEWS"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=4c89818c3d0e2186fcc4cb5228e9bf2a1866dd7d6646a18f1b37219b6710a3ac
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) configure_args+=" --disable-profiler" # https://gitlab.gnome.org/GNOME/gjs/issues/132
|
|
esac
|
|
|
|
post_configure() {
|
|
# Cross compilation gets this result wrong
|
|
vsed -e "s|^#define HAVE_DEBUG_SPIDERMONKEY.*|/* #undef HAVE_DEBUG_SPIDERMONKEY */|g" \
|
|
-i config.h
|
|
}
|
|
|
|
|
|
do_check() {
|
|
# GJS's test try to use Cairo and GTK+ which need X
|
|
:
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|
|
|
|
gjs-devel_package() {
|
|
depends="libgirepository-devel mozjs60-devel ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|