[arch-commits] Commit in libhandy/repos (2 files)
Jan Steffens
heftig at archlinux.org
Sat Sep 26 21:36:59 UTC 2020
Date: Saturday, September 26, 2020 @ 21:36:59
Author: heftig
Revision: 396648
archrelease: copy trunk to gnome-unstable-x86_64
Added:
libhandy/repos/gnome-unstable-x86_64/
libhandy/repos/gnome-unstable-x86_64/PKGBUILD
(from rev 396647, libhandy/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: libhandy/repos/gnome-unstable-x86_64/PKGBUILD (from rev 396647, libhandy/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-x86_64/PKGBUILD (rev 0)
+++ gnome-unstable-x86_64/PKGBUILD 2020-09-26 21:36:59 UTC (rev 396648)
@@ -0,0 +1,49 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=libhandy
+pkgver=0.80.0
+pkgrel=1
+pkgdesc="Library full of GTK+ widgets for mobile phones"
+arch=(x86_64)
+url="https://source.puri.sm/Librem5/libhandy"
+license=(LGPL2.1)
+depends=(glib2 gtk3)
+makedepends=(git glade gobject-introspection meson vala)
+checkdepends=(xorg-server-xvfb)
+provides=(libhandy-1.so)
+_commit=b61eefde06040703026f49a0b979588e69f77d3a # tags/v0.80.0^0
+source=("git+https://source.puri.sm/Librem5/libhandy.git#commit=$_commit")
+sha256sums=('SKIP')
+
+prepare() {
+ cd $pkgname
+
+ # Fix build with glade 3.38.0
+ sed -e 's/GWA_GET_CLASS/GLADE_WIDGET_ADAPTOR_GET_CLASS/g' \
+ -i glade/glade-*.c
+}
+
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+build() {
+ arch-meson $pkgname build \
+ -D gtk_doc=true \
+ -D examples=false
+ meson compile -C build
+}
+
+check() {
+ dbus-run-session xvfb-run \
+ -s '-screen 0 1920x1080x24 -nolisten local' \
+ meson test -C build --print-errorlogs
+}
+
+package() {
+ DESTDIR="$pkgdir" meson install -C build
+}
+
+# vim:set sw=2 et:
More information about the arch-commits
mailing list