core/libinput/PKGBUILD
2017-12-11 18:45:38 +00:00

48 lines
1.5 KiB
Bash

#Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/libinput
pkgname=libinput
pkgver=1.9.3
pkgrel=1
pkgdesc="Input device management and event handling library"
arch=(x86_64)
url="http://www.freedesktop.org/wiki/Software/libinput/"
license=(custom:X11)
depends=('mtdev' 'systemd' 'libevdev' 'libwacom')
makedepends=('doxygen' 'graphviz' 'gtk3' 'meson')
optdepends=('gtk3: libinput debug-gui'
'python-pyudev: libinput measure'
'python-evdev: libinput measure')
install=libinput.install
options=('!libtool')
source=(http://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz{,.sig})
sha256sums=('240d2c9d605b33358d81324e2c1c2fe3a33f0aeac43bce905162868971619327'
'SKIP')
validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # Peter Hutterer (Who-T) <office@who-t.net>
prepare() {
cd $pkgname-$pkgver
# Reduce docs size
printf '%s\n' >>doc/libinput.doxygen.in \
HAVE_DOT=yes DOT_IMAGE_FORMAT=svg INTERACTIVE_SVG=yes
}
build() {
meson $pkgname-$pkgver build -Dtests=false
ninja -C build
}
package() {
DESTDIR=$pkgdir ninja -C build install
install -Dvm644 $pkgname-$pkgver/COPYING \
$pkgdir/usr/share/licenses/$pkgname/LICENSE
# install doc - no Makefile target
install -d $pkgdir/usr/share/doc
cp -av build/html $pkgdir/usr/share/doc/libinput
mv $pkgdir/usr/local/{bin/,lib/,include/,libexec/} $pkgdir/usr/
mv $pkgdir/usr/local/share/* $pkgdir/usr/share/
}