#Maintainer: Max Boon (maximus) pkgname=linuxwacom pkgver=0.8.5.9 pkgrel=1mb arch=x86_64 source=("http://prdownloads.sourceforge.net/$pkgname/$pkgname-0.8.5-9.tar.bz2") docs=('authors' 'copying' 'changelog' 'install' 'news' 'notes' 'readme' 'todo') url="http://linuxwacom.sourceforge.net/" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "linuxwacom - Wacom tablet driver for linux" "The Linux Wacom Project manages the drivers, libraries, and" "documentation for configuring and running Wacom tablets under the" "Linux operating system. It contains diagnostic applications as well as" "updated kernel drivers and XFree86/Xorg XInput drivers." ) build() { cd $startdir/src/$pkgname-0.8.5-9 ./configure --prefix=/usr \ --localstatedir=/var \ --sysconfdir=/etc \ --mandir=/usr/man \ --docdir=/usr/doc/$pkgname-$pkgver \ --enable-wacom make || return 1 make DESTDIR=$startdir/pkg install #install udev rules mkdir -p $startdir/pkg/lib/udev/rules.d cp $startdir/src/$pkgname-0.8.5-9/src/util/60-wacom.rules $startdir/pkg/lib/udev/rules.d/60-wacom.rules #install wacom kernel driver mkdir -p $startdir/pkg/lib/modules/2.6.29.6/kernel/drivers/usb/input cp $startdir/src/$pkgname-0.8.5-9/src/2.6.27/wacom.ko $startdir/pkg/lib/modules/2.6.29.6/kernel/drivers/usb/input/wacom.ko #copy extra docs mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver cp $startdir/src/$pkgname-0.8.5-9/docs/* $startdir/pkg/usr/doc/$pkgname-$pkgver/ #repeat pre_permissions to fix permissions problem cd $startdir/pkg find . -perm 664 -exec chmod 644 {} \; find . -perm 600 -exec chmod 644 {} \; find . -perm 444 -exec chmod 644 {} \; find . -perm 400 -exec chmod 644 {} \; find . -perm 440 -exec chmod 644 {} \; find . -perm 777 -exec chmod 755 {} \; find . -perm 775 -exec chmod 755 {} \; find . -perm 511 -exec chmod 755 {} \; find . -perm 711 -exec chmod 755 {} \; find . -perm 555 -exec chmod 755 {} \; }