aboutsummaryrefslogtreecommitdiffstats
path: root/community/libwacom/APKBUILD
blob: 1f0e36babc1fe7cedc87bd21bf338022c331fa2b (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
# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer:
pkgname=libwacom
pkgver=1.12
pkgrel=0
pkgdesc="Library to help implement Wacom tablet settings"
url="https://github.com/linuxwacom/libwacom/wiki"
arch="all"
license="MIT"
makedepends="glib-dev libgudev-dev meson py3-libevdev py3-udev py3-pytest"
checkdepends="bash findutils diffutils libxml2-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/linuxwacom/libwacom/releases/download/libwacom-$pkgver/libwacom-$pkgver.tar.bz2
	disable-tests.patch
	"

build() {
	abuild-meson \
		-Dtests=$(options_has !check && echo disabled || echo enabled) \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

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

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

sha512sums="
4e0084eda01e78f52336f3f1f1ea3ea86cb9c5fdd6d6c0316662405ebe2a328d6837f8db855e58f5fa95a640a5d456a081a7de339a372bf851bc0d5c69530379  libwacom-1.12.tar.bz2
9fab4bc66f6cef27b3a4a332b9bf143bae665b41833b66882edc2d1bf4bece5c9fcb87f77e5337a3b4055d8961801622226cbb5647bc5db8e05af6f2da7d28b0  disable-tests.patch
"