1 # Contributor: Zsolt Udvari <udvzsolt@gmail.com>
2 # Based on activdriver package made by cbuehler
3 pkgname=activdriver-i686
7 pkgdesc="The kernel mode and X11 drivers for Promethean ActivBoard and ActivHub - i686 version."
9 url="http://www.prometheanworld.com/"
12 makedepends=(kernel26-headers)
13 provides=("activdriver")
14 install=$_pkgname.install
15 source=(http://activsoftware.co.uk/linux/repos/ubuntu/pool/oss/a/$_pkgname/${_pkgname}_$pkgver-12~ubuntu~1010_i386.deb
17 md5sums=('18716673e50014616feca6b8447c0b01'
18 '11effc25fd592acacb9f9f3108618963')
22 make -C /lib/modules/$(uname -r)/build SUBDIRS="$srcdir/usr/src/promethean/kernel" modules
23 sed -i "s%KERN_INC = /usr/src/promethean%KERN_INC = ..%" usr/src/promethean/activlc/Makefile
24 BUILD=release make -C usr/src/promethean/activlc
25 sed -i s%/usr/local/bin/%%g usr/bin/promethean.sh
31 cp -r usr/bin usr/lib usr/share $pkgdir/usr
32 install -D usr/src/promethean/activlc/release/activlc $pkgdir/usr/bin/activlc
33 install -D usr/src/promethean/kernel/promethean.ko \
34 $pkgdir/lib/modules/$(uname -r)/kernel/drivers/input/tablet/promethean.ko
35 install -D 10-promethean.conf $pkgdir/etc/X11/xorg.conf.d/10-promethean.conf