summaryrefslogtreecommitdiff
path: root/user/libevdev/APKBUILD
blob: e83c3dd0d33e96540e34f27668a333d6590c3a2a (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
38
39
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libevdev
pkgver=1.6.0
pkgrel=0
pkgdesc="Wrapper library for kernel event devices"
url="https://www.freedesktop.org/wiki/Software/libevdev"
arch="all"
options="!check"  # Requires CONFIG_INPUT_UINPUT in kernel
license="MIT"
depends=""
makedepends="doxygen linux-headers python3"
checkdepends="check-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="73046da447773716c9f0c9f511f3a0a6ababcf92a146eba363014afcbdb465f4c3cd8be0917f2f01561a72f24f20fe8ecd333467437d9d85c03afcb433d05060  libevdev-1.6.0.tar.xz"