void-packages/srcpkgs/gjs/template
2020-03-24 01:01:16 +01:00

41 lines
1.3 KiB
Bash

# Template file for 'gjs'
pkgname=gjs
version=1.63.3
revision=2
build_style=meson
build_helper="gir qemu"
configure_args="-Dskip_dbus_tests=true -Dskip_gtk_tests=true
-Dprofiler=disabled" # Disable test because they need X and GTK.
hostmakedepends="glib-devel pkg-config"
makedepends="dbus-glib-devel mozjs60-devel readline-devel sysprof-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=09f232c20e986c368e93394b2c10dc21b6fedacfff7de926f0b221ea5b933b5f
pre_configure() {
if [ "$CROSS_BUILD" ]; then
vsed -i meson.build -e"/subdir('installed-tests')/d"
fi
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
grep -rlw "<sys/signal.h>" | xargs sed -i -e"s;<sys/signal.h>;<signal.h>;"
fi
}
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"
}
}