aboutsummaryrefslogtreecommitdiffstats
path: root/community/libwacom/APKBUILD
blob: 714183314e8e9ba78e23ba2938c40687233561f1 (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
# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: Ivan Tham <pickfire@riseup.net>
pkgname=libwacom
pkgver=0.30
pkgrel=0
pkgdesc="Library to help implement Wacom tablet settings"
url="https://github.com/linuxwacom/libwacom/wiki"
arch="all"
license="MIT"
depends=""
makedepends="libgudev-dev"
checkdepends="bash findutils"
install=""
subpackages="$pkgname-dev"
source="https://github.com/linuxwacom/libwacom/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	./configure --prefix=/usr --disable-static
	make
}

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

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -dm755 "$pkgdir"/usr/lib/udev/rules.d/
	tools/generate-udev-rules
		> "$pkgdir"/usr/lib/udev/rules.d/65-libwacom.rules
}

sha512sums="863df2bca6778181b8cbe2546d4766143f78b3f9e555d6ac62ffe7f6ce53729dd78badfd1d795f217b0d4a335b600921932850c1ca2bfe832614bf22f93e09ae  libwacom-0.30.tar.bz2"