1 # Contributor: Ilya Galushko <helloy-ilya@yandex.ru>
2 # Contributor: M Rawash <mrawash@gmail.com>
3 # Contributer: N30N <archlinux@alunamation.com>
4 # Contributer: FrozenFox <FinalCrisisSX@Hotmail.com>
9 pkgdesc="Latest development drivers for Wacom tablets"
10 arch=("i686" "x86_64")
11 url="http://linuxwacom.sourceforge.net/"
12 license=("GPL" "LGPL")
13 conflicts=("linuxwacom" "linuxwacom-dev")
14 provides=("linuxwacom" "linuxwacom-dev")
15 depends=("libxi" "ncurses" "pixman" "inputproto")
16 makedepends=("cvs" "tk")
17 optdepends=("tk: for use of wacomcpl")
18 options=("!libtool" "!emptydirs")
19 source=("10-wacom.rules" "10-wacom.fdi" "xorg-1.7.patch")
20 md5sums=("02d3262b7dd10791b0c74abbaac1b933" \
21 "1e558d31fb6eea4b6a8486f5882b168d" \
22 "638c8fde9f6bf15e364d46ed31be6994")
24 if [ $(uname -r) = "2.6.31-ARCH" ]; then
25 source+=("http://kernel.ubuntu.com/git-repos/ubuntu/linux-2.6/drivers/hid/hid-ids.h")
26 md5sums+=("284ee7a33afe6d5e853b8cf67ade2d03")
29 _cvsroot=":pserver:anonymous@linuxwacom.cvs.sourceforge.net:/cvsroot/linuxwacom"
30 _cvsmod="linuxwacom-dev"
34 msg "Connecting to linuxwacom CVS server......."
35 if [ -d ${_cvsmod}/CVS ]; then
36 (cd ${_cvsmod} && cvs -z3 update -D ${pkgver} -d) || return 1
37 rm -rf ${_cvsmod}-build
39 cvs -z3 -d ${_cvsroot} co -D ${pkgver} -f ${_cvsmod} || return 1
41 cp -rf ${_cvsmod} ${_cvsmod}-build
44 patch -p1 -i ${srcdir}/xorg-1.7.patch || return 1
46 if [ $(uname -r) = "2.6.31-ARCH" ]; then
47 sed -e "s|\$(WCM_KERNEL_DIR)/drivers/hid|../../..|" \
48 -i src/2.6.31/Makefile.in
53 --x-includes=/usr/include/pixman-1 \
54 --libexecdir="/usr/lib/hal" \
59 make DESTDIR=${pkgdir} install
62 install -D -m644 ${srcdir}/10-wacom.rules \
63 ${pkgdir}/etc/udev/rules.d/10-wacom.rules
65 install -D -m644 ${srcdir}/10-wacom.fdi \
66 ${pkgdir}/etc/hal/fdi/policy/10-wacom.fdi
69 # vim: set noet ff=unix