aboutsummaryrefslogtreecommitdiffstats
path: root/community/libwacom/APKBUILD
blob: 8833f31fd1f357a1798b4dd44f7d79c3bb6c12fb (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
# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=libwacom
pkgver=2.10.0
pkgrel=0
pkgdesc="Library to help implement Wacom tablet settings"
url="https://github.com/linuxwacom/libwacom/wiki"
arch="all"
license="MIT"
depends="eudev"
makedepends="
	glib-dev
	libevdev-dev
	libgudev-dev
	meson
	py3-libevdev
	py3-pytest
	py3-udev
	"
checkdepends="bash findutils diffutils libxml2-dev"
subpackages="$pkgname-dev $pkgname-doc"
install="$pkgname.post-install $pkgname.post-upgrade"
source="https://github.com/linuxwacom/libwacom/archive/libwacom-$pkgver/libwacom-$pkgver.tar.gz
	0001-udevadm.patch
	"
builddir="$srcdir/libwacom-libwacom-$pkgver"

build() {
	abuild-meson \
		-Dtests="$(options_has !check && echo disabled || echo enabled)" \
		-Dudev-dir="/lib/udev" \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

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

sha512sums="
45bf65d5ac500214b638593e058cf2259d0c0ca955fc279d777054de9145ecc25121408a77486e2588c142d4308da8664571f305f9f4e900eefd0e5a4a695cff  libwacom-2.10.0.tar.gz
f1dd2376782584a71e84fedb83f6c3633e8b27977c6f65b3dc9db20dd0c8b761df44645d40049aef005f6ee6d7ce7496f5971306b9af778c36e59a4823235869  0001-udevadm.patch
"