jobextra/libinput/PKGBUILD

65 lines
2.4 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=libinput
pkgver=1.23.0
pkgrel=01
pkgdesc="Input device management and event handling library w/o systemd"
#url="https://www.freedesktop.org/wiki/Software/libinput/"
url="https://gitlab.freedesktop.org/libinput"
depends=('mtdev' 'libevdev' 'libwacom')
# upstream doesn't recommend building docs
makedepends=('gtk4' 'gtk3' 'meson' 'wayland-protocols' 'check') # 'doxygen' 'graphviz' 'python-sphinx' 'python-recommonmark'
checkdepends=('python-pytest')
optdepends=('gtk4: libinput debug-gui'
'python-pyudev: libinput measure'
'python-libevdev: libinput measure')
# Arch is using a source that during June 12th-13th was down, the entire site, not just the link.
# The sum reported for this tar ball does not match to this of the alternative site (common for freedesktop tar balls)
# and no signature file is provided to check the validity of the source.
#
### options=(debug) ### uncomment this to build the debug pkg
#source=(https://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz{,.sig})
#source=($url/libinput/-/archive/$pkgver/$pkgname-$pkgver{,.sig}.tar.bz2) # .tar.bz2 #
#source=(https://github.com/wayland-project/libinput/archive/refs/tags/$pkgver.tar.gz)
#source=(https://gitlab.freedesktop.org/libinput/libinput/-/archive/$pkgver/$pkgname-$pkgver.tar.bz2)
source=(https://gitlab.freedesktop.org/libinput/libinput/-/archive/$pkgver/$pkgname-$pkgver.tar.bz2)
build() {
arch-meson $pkgname-$pkgver build \
-D udev-dir=/usr/lib/udev \
-D documentation=false
# Print config
meson configure build
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
meson install -C build --destdir "$pkgdir"
install -Dvm644 $pkgname-$pkgver/COPYING \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(custom:X11)
validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # Peter Hutterer (Who-T) <office@who-t.net>
sha256sums=(fad7011705a21f500229199f789f3e3e794b4c9826b70073745cdaec23bc1d0b) # libinput-1.23.0.tar.bz2
## 311a0eae094b498a49afe6bb20eda3cdec5ddc638a3b995c5f662c67646e962b libinput-1.23.0-01-x86_64.pkg.tar.lz