jobextra/libwacom/PKGBUILD

56 lines
1.8 KiB
Bash

#!/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.6.0
pkgrel=02
pkgdesc="Library to identify Wacom tablets and their features w/o systemd"
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'
'python-pyudev: 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
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('MIT')
validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # "Peter Hutterer (Who-T) <office@who-t.net>
#validpgpkeys=('594ABBA066118C7A02D10A80A8AF906D9307FBAD') # "Joshua Dickens <Joshua@Joshua-Dickens.com>"
# https://github.com/linuxwacom/libwacom/releases
sha256sums=(2376cca99475235b75053a2cfbc7ed40fd8763d5a516941a664870ff1f3aa98f # libwacom-2.6.0.tar.xz
75989d35d82adfde9bbcd0fc1da0c34dd9a6532a89e8ff25a5f8df56f42d41cd) # libwacom-2.6.0.tar.xz.sig
## b5bcdd68a61648eb832e40308348fcaa4417818bcfc878fa86e072f0b006160c libwacom-2.6.0-02-x86_64.pkg.tar.lz