summaryrefslogtreecommitdiff
path: root/user/libinput/APKBUILD
blob: 1220bb1cd176889444dd424f02c889146737ebd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libinput
pkgver=1.12.1
pkgrel=0
pkgdesc="Library for handling input devices"
url="https://www.freedesktop.org/wiki/Software/libinput/"
arch="all"
license="MIT"
makedepends="eudev-dev libevdev-dev libwacom-dev meson mtdev-dev"
checkdepends="check-dev valgrind"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz"

build() {
	cd "$builddir"
	# Docs disabled: requires sphinx now
	meson --prefix=/usr \
		-Ddocumentation=false \
		-Dlibwacom=true \
		-Ddebug-gui=false \
		-Dtests=true builddir/
	ninja -C builddir/
}

check() {
	cd "$builddir"
	ninja -C builddir/ test
}

package() {
	cd "$builddir"
	DESTDIR="$pkgdir" ninja -C builddir/ install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="de1714526ee1244e3086729efa5b72724b2b989fa8d04418e633d1ef5a8ea777ae3cd4b8c5b015ca0da2b8cf5b07111bff2283c7d6068abcdfa81c3f71b81d68  libinput-1.12.1.tar.xz"