PKGBUILDs/extra/gjs/PKGBUILD

52 lines
1.3 KiB
Bash
Raw Normal View History

2021-11-10 05:37:17 +00:00
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch from debian to detect libatomic usage
pkgname=gjs
pkgver=1.70.0
2022-01-07 19:08:54 +00:00
pkgrel=2
2021-11-10 05:37:17 +00:00
epoch=2
pkgdesc="Javascript Bindings for GNOME"
url="https://wiki.gnome.org/Projects/Gjs"
arch=(x86_64)
license=(GPL)
2022-01-07 19:08:54 +00:00
depends=(cairo gobject-introspection-runtime js78 dconf readline
libsysprof-capture)
2021-11-10 05:37:17 +00:00
makedepends=(gobject-introspection git meson dbus)
checkdepends=(valgrind xorg-server-xvfb gtk3 gtk4)
provides=(libgjs.so)
_commit=da5d5fe74469c799de80117758d79ad694d1116a # tags/1.70.0^0
source=("git+https://gitlab.gnome.org/GNOME/gjs.git#commit=$_commit"
build-Link-with-libatomic-if-necessary.patch)
sha256sums=('SKIP'
'fcfcc02a65b3917fbdf7ded5ee294ff5fc71225ffe720e42ca0257c7cb14eada')
pkgver() {
cd $pkgname
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd $pkgname
patch -p1 -i ../build-Link-with-libatomic-if-necessary.patch
}
build() {
arch-meson $pkgname build \
--buildtype release \
2022-01-07 19:08:54 +00:00
-D installed_tests=false
2021-11-10 05:37:17 +00:00
meson compile -C build
}
check() {
xvfb-run -s '-nolisten local' \
meson test -C build --print-errorlogs
}
package() {
depends+=(libreadline.so)
meson install -C build --destdir "$pkgdir"
}