summaryrefslogtreecommitdiff
path: root/community/libevdev/APKBUILD
blob: a41663e994dfc102de325afef7c68da483de1947 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libevdev
pkgver=1.13.1
pkgrel=0
pkgdesc="Kernel Evdev Device Wrapper Library"
url="https://www.freedesktop.org/wiki/Software/libevdev"
arch="all"
license="MIT"
options="!check"  # Requires CONFIG_INPUT_UINPUT in kernel
depends_dev="linux-headers"
makedepends="
	$depends_dev
	doxygen
	meson
	python3
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="https://freedesktop.org/software/libevdev/libevdev-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Db_lto=true \
		-Dtests=disabled \
		-Ddocumentation=enabled \
		-Dcoverity=false \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

tools() {
	pkgdesc="$pkgdesc (tools)"
	amove usr/bin
}

sha512sums="
9b75bad4bc13948854c8dff7a7a46aca6c06d1410ccb000f881bf76055ccac040595c3b24fb1a574be875b5c262eb86820b9ec3383752641bc2047135e5a412f  libevdev-1.13.1.tar.xz
"