pkgname=libhandy
pkgver=1.8.3
pkgdesc="Building blocks for modern adaptive GNOME apps"
homepage="https://gitlab.gnome.org/GNOME/libhandy/"
license=("LGPL-2.1+")
slot="1"
depends=(glib:2 gtk+:3 gobject-introspection xorg-proto)
bdepends=(libxml:2 gettext)
sources=("${pkgname}-${pkgver}.tar.xz")
urls=("https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${sources[0]}")
sha512sums=("1e0ae363d2a4993c9667243715256b27cb0ecb898fa8f4ea1a914fbeb36c0a9c26447f8f13f92f5a855e45ada49f732adeb30b88d81f3ee5f984bca48db3ae65")

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_build() {
  local meson_args=(
    --prefix=/usr
    --buildtype=release
    --wrap-mode=nodownload
    -D python.bytecompile=1
    -D profiling=false
    -D introspection=enabled
    -D vapi=true
    -D gtk_doc=false
    -D tests=false
    -D examples=false
    -D glade_catalog=disabled
  )
  meson setup build "${meson_args[@]}"
  meson compile -C build
}

src_install() {
  meson install -C build --destdir "$pkgdir"
}

# vim:ft=sh syn=sh et sw=2:
