aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libwacom/APKBUILD
blob: 249bd551ef621473d3cef145282e12b6114339b9 (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
# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: Ivan Tham <pickfire@riseup.net>
pkgname=libwacom
pkgver=0.24
pkgrel=1
pkgdesc="Library to help implement Wacom tablet settings"
url="http://linuxwacom.sourceforge.net/"
arch="all"
license="MIT"
depends=""
makedepends="libgudev-dev"
checkdepends="bash findutils"
install=""
subpackages="$pkgname-dev"
source="https://downloads.sourceforge.net/project/linuxwacom/$pkgname/$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 -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
	install -dm755 "$pkgdir"/usr/lib/udev/rules.d/
	tools/generate-udev-rules
		> "$pkgdir"/usr/lib/udev/rules.d/65-libwacom.rules
}

sha512sums="331acb33ab798abf376f70647786c894014d5baa373cc66d53f1e77e77129ba78ec059f32f5cf3659a1fe3e8f9ff6ab3eb6eefd6090fc3c3bab4582ea25a5640  libwacom-0.24.tar.bz2"