updated on Mon Jan 23 00:00:36 UTC 2012
[aur-mirror.git] / linuxwacom-cvs / PKGBUILD
blobb3ec29589e541cfecbc3f6a7b228da9429420ed0
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>
6 pkgname=linuxwacom-cvs
7 pkgver=20091107
8 pkgrel=2
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"
32 build() {
33         cd ${srcdir}
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
38         else
39                 cvs -z3 -d ${_cvsroot} co -D ${pkgver} -f ${_cvsmod} || return 1
40         fi
41         cp -rf ${_cvsmod} ${_cvsmod}-build
42         cd ${_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
49         fi
51         ./bootstrap
52         ./configure \
53                 --x-includes=/usr/include/pixman-1 \
54                 --libexecdir="/usr/lib/hal" \
55                 --prefix=/usr \
56                 --enable-wacom
58         make || return 1
59         make DESTDIR=${pkgdir} install
61         # Install udev rules
62         install -D -m644 ${srcdir}/10-wacom.rules \
63                 ${pkgdir}/etc/udev/rules.d/10-wacom.rules
64         # Install hal rules
65         install -D -m644 ${srcdir}/10-wacom.fdi \
66                 ${pkgdir}/etc/hal/fdi/policy/10-wacom.fdi
69 # vim: set noet ff=unix