#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=umockdev
pkgver=0.17.13
pkgrel=01
pkgdesc="Record/mock hardware devices for bug reports and regression tests w/o systemd"
arch=('x86_64')
url="https://github.com/martinpitt/umockdev/"
depends=('libgudev')
makedepends=('meson' 'gobject-introspection' 'gtk-doc' 'vala')
source=($pkgname-$pkgver.tar.gz::https://github.com/martinpitt/$pkgname/archive/$pkgver.tar.gz)

build() {
  cd $pkgname-$pkgver

  arch-meson -Dgtk_doc=true ../build
  ninja -v -C ../build
}

check() {
  cd $pkgname-$pkgver

  meson test -C ../build --print-errorlogs
}

package() {
  cd $pkgname-$pkgver

  DESTDIR="${pkgdir}" meson install -C ../build
}

#---- license gpg-key sha256sums ----

license=('LGPL')

sha256sums=(d34227cc48be96da220f8ebeb1d2ae6ab88c751ae0db07c6ea875e37740acfe9) # umockdev-0.7.13.tar.gz


