aboutsummaryrefslogtreecommitdiffstats
path: root/main/libinput/APKBUILD
blob: c43be269c0d1aa5082e82c83fa4b02bdb5b2fe3a (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com>
pkgname=libinput
pkgver=1.15.2
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"
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
}

sha512sums="f6b50dbdf6ee6b65f88e020c4292c94c3178125d58629f27c2e52f92b658ccd67e0c5604fbf0b303621ff0386637ce1e291daaa991761d4145e8bcda4dd128a2  libinput-1.15.2.tar.xz"