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
|
2018-10-08 18:17:22 +08:00
|
|
|
pkgver=1.12.1
|
2017-12-12 02:45:38 +08:00
|
|
|
pkgrel=1
|
2016-07-25 06:26:23 +08:00
|
|
|
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})
|
2018-10-08 18:17:22 +08:00
|
|
|
sha256sums=('570c48cc7b744b9b4da711ed0c5e8c3de132484684b0c4f0309a9a83df5e8692'
|
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
|
2017-11-14 19:14:22 +08:00
|
|
|
|
|
|
|
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
|
|
|
}
|
2017-11-14 19:14:22 +08:00
|
|
|
|