aboutsummaryrefslogtreecommitdiffstats
path: root/main/libinput/APKBUILD
blob: 62c5ab38169003bbdac328b794a3fbfb0efab129 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com>
pkgname=libinput
pkgver=1.15.5
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 meson mtdev-dev"
checkdepends="diffutils bash"
subpackages="
	$pkgname-dev
	$pkgname-doc
	$pkgname-libs
	$pkgname-zsh-completion:zshcomp:noarch
	"
source="https://freedesktop.org/software/libinput/libinput-$pkgver.tar.xz"

build() {
	meson \
		--buildtype=plain \
		--prefix=/usr \
		--libdir=lib \
		-Ddocumentation=false \
		-Dlibwacom=false \
		-Ddebug-gui=false \
		-Dtests=false builddir/
	ninja -C builddir/
}

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

package() {
	DESTDIR="$pkgdir" ninja -C builddir/ install
}

zshcomp() {
	depends=""
	pkgdesc="Zsh completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel zsh"

	amove usr/share/zsh/site-functions
}

sha512sums="a0a3a325048841fc017e19d3bc5f5490605972ab9e2730dc5678bda7efb7a5b1fa6f531f3c8abd8393899ec383d8d2bcfd586eacee04fc1fbda0e02ba2af956a  libinput-1.15.5.tar.xz"