updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / activdriver-i686 / PKGBUILD
blobcb3b274b42572c733f7430d52432b3b691b50aa6
1 # Contributor: Zsolt Udvari <udvzsolt@gmail.com>
2 # Based on activdriver package made by cbuehler
3 pkgname=activdriver-i686
4 _pkgname=activdriver
5 pkgver=5.7.22
6 pkgrel=1
7 pkgdesc="The kernel mode and X11 drivers for Promethean ActivBoard and ActivHub - i686 version."
8 arch=('i686')
9 url="http://www.prometheanworld.com/"
10 license=('unknown')
11 depends=(bash)
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
16         10-promethean.conf)
17 md5sums=('18716673e50014616feca6b8447c0b01'
18          '11effc25fd592acacb9f9f3108618963')
20 build() {
21   tar xf data.tar.gz
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
28 package() {
29   mkdir -p $pkgdir/usr 
30   cp -r etc lib $pkgdir
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