#!/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=libwacom
pkgver=2.5.0
pkgrel=01
pkgdesc="Library to identify Wacom tablets and their features w/o systemd"
arch=('x86_64')
url="https://github.com/linuxwacom/libwacom/wiki"
depends=('glib2' 'libgudev')
makedepends=('libxml2' 'meson')
checkdepends=('python-pytest' 'python-libevdev' 'python-pyudev')
optdepends=('python-libevdev: for libwacom-show-stylus')
#options=('debug')  ####  uncomment this to have the debug pkg produced
source=(https://github.com/linuxwacom/libwacom/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.xz{,.sig})

build() {
  meson build $pkgname-$pkgver \
    --prefix=/usr \
        -Dtests=disabled
  # Print config
  meson configure build
  ninja -C build
}

check() {
  ninja test -C build
}

package() {
  DESTDIR="$pkgdir" ninja install -C build
  install -D -m644 $pkgname-$pkgver/COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}

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

license=('MIT')

validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') ## E23B7E70B467F0BF: "Peter Hutterer (Who-T) <office@who-t.net>
validpgpkeys=('594ABBA066118C7A02D10A80A8AF906D9307FBAD') # "Joshua Dickens <Joshua@Joshua-Dickens.com>"

# https://github.com/linuxwacom/libwacom/releases

sha256sums=(40b69a4c38bbcbc80b1231bc115551107ebbc0ba14d2ad1c3e54355dcd876816  # libwacom-2.5.0.tar.xz
	4de4fa7564bbeceaa7a114636dbaa68d894d7d99744f0e8b1e968fbdb654a476) # libwacom-2.5.0.tar.xz.sig


