# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=libhandy pkgver=0.0.10 pkgrel=1 pkgdesc="Library full of GTK+ widgets for mobile phones" url="https://source.puri.sm/Librem5/libhandy" arch="all" license="LGPL-2.0-or-later" makedepends="meson glib-dev gtk+3.0-dev vala py3-setuptools gobject-introspection-dev glade-dev" checkdepends="xvfb-run ibus" subpackages="$pkgname-dev:_dev" source="https://source.puri.sm/Librem5/libhandy/-/archive/v$pkgver/libhandy-v$pkgver.tar.gz" builddir="$srcdir/$pkgname-v$pkgver" build() { meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=release \ -Dexamples=true \ . output ninja -C output } check() { xvfb-run ninja -C output test } package() { DESTDIR="$pkgdir" ninja -C output install } _dev() { default_dev mkdir -p "$subpkgdir"/usr/share mv "$pkgdir"/usr/bin "$subpkgdir"/usr mv "$pkgdir"/usr/share/glade "$subpkgdir"/usr/share } sha512sums="dc5298052243f945460a4d348aaca43f74e092dca99f52fb614d7a8abf59d15f980e03a712a70f39d97d8859589be1ff94f10316779320f3ea15b9ab741cf445 libhandy-v0.0.10.tar.gz"