summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3802c63a88e0e96eeba7770444ff912845742b99 (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
48
49
50
51
52
53
# Maintainer: Lubosz Sarnecki <lubosz@gmail.com>
# Contributor:  Federico Cinelli <cinelli.federico@gmail.com>
# Contributor: Egor Pomortsev <egor.pomortsev@gmail.com>
# Contributor: M Rawash <mrawash@gmail.com>
# Contributor: Andrzej Giniewicz <gginiu@gmail.com>

pkgname=xf86-input-wacom-git
pkgver=0.33.0
pkgrel=1
pkgdesc="X.Org Wacom tablet driver (from git)"
url="http://linuxwacom.sourceforge.net"
arch=(i686 x86_64)
license=(GPL)
depends=(libxi libxinerama libxrandr)
makedepends=(autoconf automake git xorg-server-devel libxext xorg-util-macros)
provides=("xf86-input-wacom=$pkgver")
conflicts=(xf86-input-wacom)
options=(!libtool)
backup=(etc/X11/xorg.conf.d/50-wacom.conf)

source=("git://git.code.sf.net/p/linuxwacom/xf86-input-wacom")
md5sums=('SKIP')

pkgver() {
  cd xf86-input-wacom
  git describe | sed -r 's/^xf86-input-wacom-//'
}

mkdir_needed() {
  if [ ! -d $1 ]; then
    mkdir -p $1
  fi
}

prepare() {
  mkdir_needed xf86-input-wacom/m4
}

build() {
  cd xf86-input-wacom
  ./autogen.sh --prefix=/usr --with-xorg-conf-dir=/etc/X11/xorg.conf.d
  make
}

check() {
  cd xf86-input-wacom
  make -k check || :
}

package() {
  cd xf86-input-wacom
  make DESTDIR="$pkgdir" install
}