Date: Tuesday, October 25, 2022 @ 14:23:23
Author: heftig
Revision: 458880
archrelease: copy trunk to gnome-unstable-x86_64
Added:
gjs/repos/gnome-unstable-x86_64/
gjs/repos/gnome-unstable-x86_64/PKGBUILD
(from rev 458879, gjs/trunk/PKGBUILD)
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Copied: gjs/repos/gnome-unstable-x86_64/PKGBUILD (from rev 458879,
gjs/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-x86_64/PKGBUILD (rev 0)
+++ gnome-unstable-x86_64/PKGBUILD 2022-10-25 14:23:23 UTC (rev 458880)
@@ -0,0 +1,54 @@
+# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
+# Contributor: Ionut Biru <[email protected]>
+
+pkgname=gjs
+pkgver=1.74.0
+pkgrel=1
+epoch=2
+pkgdesc="Javascript Bindings for GNOME"
+url="https://wiki.gnome.org/Projects/Gjs"
+arch=(x86_64)
+license=(GPL)
+depends=(cairo gobject-introspection-runtime js102 dconf readline
+ libsysprof-capture)
+makedepends=(gobject-introspection git meson dbus)
+checkdepends=(xorg-server-xvfb gtk3 gtk4)
+provides=(libgjs.so)
+options=(debug)
+_commit=f4a4572c35a67eb38fef9243f2c34f37ee60d7ff # tags/1.74.0^0
+source=("git+https://gitlab.gnome.org/GNOME/gjs.git#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd gjs
+ git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
+}
+
+prepare() {
+ cd gjs
+}
+
+build() {
+ local meson_options=(
+ -D installed_tests=false
+ )
+
+ CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
+ CXXFLAGS="${CXXFLAGS/-O2/-O3} -fno-semantic-interposition"
+ LDFLAGS+=" -Wl,-Bsymbolic-functions"
+
+ arch-meson gjs build "${meson_options[@]}"
+ 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"
+}
+
+# vim:set sw=2 sts=-1 et: