summaryrefslogtreecommitdiffstats
path: root/wizardpen/PKGBUILD
blob: b10c926daf836ef6be495f0cc508d7cd68aa8123 (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: Zerathidune <zerathidune@gmail.com>
pkgname=wizardpen
pkgver=0.6.1rc2
pkgrel=4
pkgdesc="Xorg driver for Genius tablets"
arch=('i686' 'x86_64')
url="http://specificcrap.arbitrarycrap.com/"
license=('GPL')
conflicts=(wizardpen-driver)
replaces=(wizardpen-driver)
source=(http://vagabond.ath.cx/distfiles/$pkgname-$pkgver.tar.gz
	wizardpen.patch
	99-geniuspen.fdi)
md5sums=('f121264d460ecc333c1bfa47834ec559'
         '8a1661695bd7ba640e3dd184dd97446d'
         '5b6b4566c41821eb6d24f7a233b39cb2')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  patch src/wizardpen.c ../wizardpen.patch
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR="$pkgdir" install
  
  cd calibrate
  rm wizardpen-calibrate
  make || return 1
  install -d $pkgdir/usr/bin
  install -m 755 wizardpen-calibrate $pkgdir/usr/bin/

  cd $srcdir
  install -d $pkgdir/usr/share/hal/fdi/policy/10osvendor
  install -m 644 99-geniuspen.fdi $pkgdir/usr/share/hal/fdi/policy/10osvendor/
}