void-packages/srcpkgs/gjs/template

34 lines
1.0 KiB
Bash

# Template file for 'gjs'
pkgname=gjs
version=1.52.0
revision=1
configure_args="--without-dbus-tests"
build_style=gnu-configure
hostmakedepends="pkg-config intltool glib-devel gobject-introspection"
makedepends="libffi-devel libgirepository-devel dbus-glib-devel
cairo-devel readline-devel mozjs52-devel"
short_desc="Mozilla-based javascript bindings for the GNOME platform"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="MIT, LGPL-2.0-or-later"
homepage="https://wiki.gnome.org/action/show/Projects/Gjs"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=5524a045e5e1d34a2a510133c662f2685e15ce26ae2ed699fb5d131b6b04a4ca
case "$XBPS_TARGET_MACHINE" in
*-musl) configure_args+=" --disable-profiler" # https://gitlab.gnome.org/GNOME/gjs/issues/132
esac
post_install() {
vlicense COPYING
}
gjs-devel_package() {
depends="libgirepository-devel mozjs52-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}