PKGBUILDs/extra/gjs/PKGBUILD

56 lines
1.4 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-12 00:18:06 +00:00
pkgrel=3
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() {
2022-01-12 00:18:06 +00:00
cd gjs
2021-11-10 05:37:17 +00:00
git describe --tags | sed 's/-/+/g'
}
prepare() {
2022-01-12 00:18:06 +00:00
cd gjs
2021-11-10 05:37:17 +00:00
patch -p1 -i ../build-Link-with-libatomic-if-necessary.patch
}
build() {
2022-01-12 00:18:06 +00:00
CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
CXXFLAGS="${CXXFLAGS/-O2/-O3} -fno-semantic-interposition"
LDFLAGS+=" -Wl,-Bsymbolic-functions"
arch-meson gjs build -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"
}
2022-01-12 00:18:06 +00:00
# vim:set sw=2 et: