blob: ca3f4b7c3021176cb57f5422d4e06df3fb6cafa5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Aaron Fischer <mail@aaron-fischer.net>
# Contributor: Nuno Araujo <nuno.araujo@russo79.com>
# Contributor: Christopher Marra <christophermarra86@gmail.com>
# Contributor: Nuno Araujo <nuno.araujo@russo79.com>
pkgname=kmod-roccat
pkgver=1.0.0
_extramodules=`ls -v /usr/lib/modules/ | grep extra | tail -n 1`
pkgrel=1
pkgdesc="Kernel module for the old kone ROCCAT device."
arch=('i686' 'x86_64')
url="http://roccat.sourceforge.net"
license=('GPL')
depends=()
makedepends=('linux-headers>=3.11')
conflicts=('roccat-dkms')
optdepends=('roccat-tools: graphical tools to adjust the mouse settings')
install=$pkgname.install
source=(http://downloads.sourceforge.net/project/roccat/linux/kmod-roccat/kmod-roccat-$pkgver.tar.bz2)
md5sums=('6874ef9b5047209364215aecee0af74d')
build() {
cd "$srcdir/$pkgname-$pkgver/3.11_and_up"
sed -i 's%uname -r%ls -v /lib/modules | grep -v extra | tail -n 1%' Makefile
make modules
}
package() {
cd "$srcdir/$pkgname-$pkgver/"
install -D override-roccat.conf $pkgdir/usr/lib/depmod.d/override-roccat.conf
cd "$srcdir/$pkgname-$pkgver/3.11_and_up"
install -D hid-roccat.ko $pkgdir/usr/lib/modules/$_extramodules/hid-roccat.ko
install -D hid-roccat-kone.ko $pkgdir/usr/lib/modules/$_extramodules/hid-roccat-kone.ko
}
|