packages/gjs/PKGBUILD
2024-10-27 23:12:22 +01:00

76 lines
1.7 KiB
Bash

# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Fabian Bornschein <fabiscafe@archlinux.org>
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
pkgname=gjs
pkgver=1.82.1
pkgrel=1
epoch=2
pkgdesc="Javascript Bindings for GNOME"
url="https://wiki.gnome.org/Projects/Gjs"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
license=(LGPL-2.0-or-later)
depends=(
cairo
dconf
gcc-libs
glib2
glibc
gobject-introspection-runtime
js128
libffi
libgirepository
libsysprof-capture
libx11
readline
)
makedepends=(
dbus
git
gobject-introspection
meson
)
checkdepends=(
gtk3
gtk4
xorg-server-xvfb
)
provides=(libgjs.so)
source=("git+https://gitlab.gnome.org/GNOME/gjs.git#tag=$pkgver"
"git+https://gitlab.gnome.org/GNOME/gobject-introspection-tests.git")
b2sums=('db5fa6aea38f73baddc27643ffc09154fec12aa135a2943e8c6fc782efd053c1787d8fd5251fb605aef96dedb94ea11d8de4707c11f790c3da7a6d7eacb471d2'
'SKIP')
validpgpkeys=(
53C0524AD3AE115F69C47D2D0E9D857756977391 # Philip Chimento (Signing Key for GNOME Releases) <philip.chimento@gmail.com>
)
prepare() {
cd gjs
git submodule init
git submodule set-url subprojects/gobject-introspection-tests "${srcdir}/gobject-introspection-tests"
git -c protocol.file.allow=always -c protocol.allow=never submodule update
}
build() {
local meson_options=(
-D installed_tests=false
)
arch-meson gjs build "${meson_options[@]}"
meson compile -C build
}
check() {
dbus-run-session xvfb-run -s '-nolisten local' \
meson test -C build --print-errorlogs
}
package() {
depends+=(libreadline.so)
meson install -C build --destdir "$pkgdir"
}
# vim:set sw=2 sts=-1 et: