jobextra/libinput/PKGBUILD
2022-03-20 14:34:07 +02:00

78 lines
2.6 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.20.0
pkgrel=01
pkgdesc="Input device management and event handling library"
#url="https://www.freedesktop.org/wiki/Software/libinput/"
url="https://gitlab.freedesktop.org/libinput"
arch=(x86_64)
depends=('mtdev' 'libevdev' 'libwacom')
# upstream doesn't recommend building docs
makedepends=('gtk4' 'meson' 'wayland-protocols' 'cmake' 'gtk4') # 'doxygen' 'graphviz' 'python-sphinx' 'python-recommonmark'
optdepends=('gtk4: libinput debug-gui'
'python-pyudev: libinput measure'
'python-libevdev: libinput measure')
#source=(https://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz{,.sig})
source=($url/libinput/-/archive/$pkgver/$pkgname-$pkgver{,.sig}.tar.bz2) # .tar.bz2 #
build() {
arch-meson $pkgname-$pkgver build \
-D udev-dir=/usr/lib/udev \
-D tests=false \
-D documentation=false
# Print config
meson configure build
meson compile -C build
}
# -D b_lto=false \ # removed option from 1.19.3
package() {
DESTDIR="$pkgdir" meson install -C build
install -Dvm644 $pkgname-$pkgver/COPYING \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
build() {
arch-meson $pkgname-$pkgver build \
-D udev-dir=/usr/lib/udev \
-D tests=false \
-D documentation=false
# Print config
meson configure build
meson compile -C build
}
package() {
DESTDIR="$pkgdir" meson install -C build
install -Dvm644 $pkgname-$pkgver/COPYING \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
#---- license gpg-key sha256sums ----
license=(custom:X11)
validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # Peter Hutterer (Who-T) <office@who-t.net>
# sha256sums=(3cae78ccde19d7d0f387e58bc734d4d17ab5f6426f54a9e8b728c90b17baa068 # libinput-1.19.3.tar.xz
# db134d7f37e85160373f7377bacd6bd33ffe6a25b756d927ef63e9809b7107fd) # libinput-1.19.3.tar.xz.sig
sha256sums=(6c1f97892a7d599f97349e5e7c1239901fe00edcd4f6289f410034d5dc06cc85 # libinput-1.20.0.tar.bz2
d20ec6a007cf068ddb7bcbfe839bc0d4b19be8b8dae9ce11672326df49920a08) # libinput-1.20.0.sig.tar.bz2
sha512sums=(145b0e0760929137ab442b2030b4b42f6df54a3ae61c47c929e1a74857a170f0f2a56bb7522b7d1d9c0943028ac54c7728cf8d66a0c384f6118f31d6625ab44c # libinput-1.20.0.tar.bz2
cb02dd2bae40bd57fcb671f8f8fe7fc36bc4936b93251b1e24b8594e8ad961934fdaac3d30ef5dc819850f7e4566d5f62707b893000d92fe1f17c763c985c7e5) # libinput-1.20.0.sig.tar.bz2