updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lg4l-git / PKGBUILD
blob83509058ae72691654cdfa26e70fcbcec61dc95c
1 # Maintainer: Nuno Araujo <nuno.araujo@russo79.com>
2 pkgname=lg4l-git
3 pkgver=20111012
4 pkgrel=1
5 pkgdesc="Logitech for Linux"
6 arch=(x86_64)
7 url="http://lg4l.wikia.com/wiki/LG4L_Wiki"
8 license=('GPL')
9 depends=('linux>=3.0' 'linux<3.1')
10 makedepends=('linux-headers>=3.0')
11 makedepends=('git')
12 install=lg4l-git.install
14 _gitroot="git://github.com/ali1234/lg4l.git"
15 _gitname="lg4l"
16 _kernver='3.0-ARCH'
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   cd "$srcdir"
34   if [ -d $_gitname-build ] ; then
35     rm -rf $_gitname-build
36   fi
38   git clone $_gitname $_gitname-build
39   
40   cd "$srcdir/$_gitname-build"
41   make
44 package() {
45   cd "$srcdir/$_gitname-build"
46   install -D hid-g110.ko "$pkgdir/lib/modules/${_kernver}/extra/hid-g110.ko"
47   install -D hid-g13.ko "$pkgdir/lib/modules/${_kernver}/extra/hid-g13.ko"
48   install -D hid-g19.ko "$pkgdir/lib/modules/${_kernver}/extra/hid-g19.ko"
49   install -D hid-g15.ko "$pkgdir/lib/modules/${_kernver}/extra/hid-g15.ko"
50   install -D hid-gfb.ko "$pkgdir/lib/modules/${_kernver}/extra/hid-gfb.ko"
51   sed -i "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" "$startdir/$install"
54 # vim:set ts=2 sw=2 et: