mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 14:04:37 +08:00
44 lines
1.3 KiB
Bash
44 lines
1.3 KiB
Bash
#Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/libinput
|
|
|
|
pkgname=libinput
|
|
pkgver=1.9.1
|
|
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=('f0780de4211b3d09f86c17f619f936261a213ca532f8c9ec8f8e7e43422a65f8'
|
|
'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"
|
|
}
|