core/libinput/PKGBUILD

48 lines
1.5 KiB
Bash
Raw Normal View History

2015-03-20 01:44:52 +08:00
#Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/libinput
2015-01-15 02:18:52 +08:00
pkgname=libinput
2017-12-12 02:45:38 +08:00
pkgver=1.9.3
pkgrel=1
pkgdesc="Input device management and event handling library"
2015-03-20 01:44:52 +08:00
arch=(x86_64)
2015-01-15 02:18:52 +08:00
url="http://www.freedesktop.org/wiki/Software/libinput/"
license=(custom:X11)
2016-06-21 04:57:02 +08:00
depends=('mtdev' 'systemd' 'libevdev' 'libwacom')
2017-11-14 18:36:32 +08:00
makedepends=('doxygen' 'graphviz' 'gtk3' 'meson')
optdepends=('gtk3: libinput debug-gui'
'python-pyudev: libinput measure'
'python-evdev: libinput measure')
2015-11-20 03:23:30 +08:00
install=libinput.install
2015-01-15 02:18:52 +08:00
options=('!libtool')
2015-12-22 18:25:34 +08:00
source=(http://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz{,.sig})
2017-12-12 02:45:38 +08:00
sha256sums=('240d2c9d605b33358d81324e2c1c2fe3a33f0aeac43bce905162868971619327'
2015-12-22 18:25:34 +08:00
'SKIP')
validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # Peter Hutterer (Who-T) <office@who-t.net>
prepare() {
cd $pkgname-$pkgver
2017-11-14 18:36:32 +08:00
# Reduce docs size
printf '%s\n' >>doc/libinput.doxygen.in \
HAVE_DOT=yes DOT_IMAGE_FORMAT=svg INTERACTIVE_SVG=yes
2015-12-22 18:25:34 +08:00
}
2015-01-15 02:18:52 +08:00
build() {
2017-11-14 18:36:32 +08:00
meson $pkgname-$pkgver build -Dtests=false
ninja -C build
2015-12-22 18:25:34 +08:00
}
2015-01-15 02:18:52 +08:00
package() {
2017-12-12 02:45:38 +08:00
DESTDIR=$pkgdir ninja -C build install
2017-11-14 18:36:32 +08:00
install -Dvm644 $pkgname-$pkgver/COPYING \
2017-12-12 02:45:38 +08:00
$pkgdir/usr/share/licenses/$pkgname/LICENSE
2017-11-14 18:36:32 +08:00
# install doc - no Makefile target
2017-12-12 02:45:38 +08:00
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/
2015-01-15 02:18:52 +08:00
}