1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Balló György <ballogyor+arch at gmail dot com>
5 pkgname=(libhandy libhandy-docs)
8 pkgdesc="Library full of GTK+ widgets for mobile phones"
9 url="https://gitlab.gnome.org/GNOME/libhandy"
13 makedepends=(git gobject-introspection meson vala glade gi-docgen)
14 checkdepends=(xorg-server-xvfb)
16 _commit=2885c314c9c84037b6fe55ead6a232e60ebfc9c5 # tags/1.6.3^0
17 source=("git+https://gitlab.gnome.org/GNOME/libhandy.git#commit=$_commit")
22 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
30 arch-meson libhandy build \
32 meson compile -C build
36 dbus-run-session xvfb-run -s '-nolisten local' \
37 meson test -C build --print-errorlogs
41 provides=(libhandy-1.so)
43 meson install -C build --destdir "$pkgdir"
45 mkdir -p doc/usr/share
46 mv {"$pkgdir",doc}/usr/share/doc
49 package_libhandy-docs() {
50 pkgdesc+=" (documentation)"