updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / synaptics-led / PKGBUILD
blob32de8cc448619b12fa84de94035055d04835978f
1 # Maintainer: Matthew Monaco <dgbaley27@0x01b.net>
3 _kver=3.2
4 _gitroot=git://repo.or.cz/linux-2.6.git
6 pkgname=synaptics-led
7 pkgver=$_kver
8 pkgrel=1
10 arch=(i686 x86_64)
11 license=(GPL2)
12 url="https://github.com/mmonaco/synaptics-led"
13 pkgdesc="Synaptics LED enabled psmouse kernel module"
14 depends=("linux>=3.2" "linux<3.3")
15 makedepends=("git" "linux-headers")
17 install=$pkgname.install
19 source=(
20         "MD5SUMS"
21         "synled.patch"
24 md5sums=(
25         07f08e2927b10ae49f113aa6af06a7f7
26         f882be55909191e85020ef4f8000a321
29 build() {
31         msg2 "Getting source from $_gitroot"
32         git archive --remote=$_gitroot v$_kver drivers/input/mouse | tar -x
33         cd "drivers/input/mouse"
35         msg2 "Performing Integrity Check"
36         md5sum --quiet -c $srcdir/MD5SUMS
38         msg2 "Patching source"
39         patch -p4 -i "$srcdir/synled.patch"
41         msg2 "Building psmouse.ko"
42         make -C "/lib/modules/$(uname -r)/build" M="$PWD" psmouse.ko
44         msg2 "Installing psmouse.ko.gz"
45         gzip -9 psmouse.ko
46         install -Dm 0644 psmouse.ko.gz \
47                 "$pkgdir/lib/modules/extramodules-$_kver-ARCH/psmouse.ko.gz"