# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=libhandy pkgver=0.0.12 pkgrel=1 pkgdesc="Library full of GTK+ widgets for mobile phones" url="https://source.puri.sm/Librem5/libhandy" arch="all !s390x" # Limited by 'ibus' 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" source="https://source.puri.sm/Librem5/libhandy/-/archive/v$pkgver/libhandy-v$pkgver.tar.gz skip-test.patch" builddir="$srcdir/$pkgname-v$pkgver" build() { meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=debugoptimized \ -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/lib "$subpkgdir"/usr/share mv "$pkgdir"/usr/bin "$subpkgdir"/usr mv "$pkgdir"/usr/share/glade/catalogs "$subpkgdir"/usr/share mv "$pkgdir"/usr/lib/glade/modules "$subpkgdir"/usr/share } sha512sums="f83675179e7cc587c36d2bf4e57dc6254609c607af38f2d3392d8234d58de228f63f96782dcd96fcf61f94c0bd7a71f94790ea0fecacace7aec952279a2e25c8 libhandy-v0.0.12.tar.gz e67a51b2985d27f1ed259773060e7df1430f7529f6cef69b1a240f97bfdccb73bd97303b96e209daa2ff7d31094f290986a663d4c7919b4799ec333b8e06a83f skip-test.patch"