1 # Maintainer: Nuno Araujo <nuno.araujo@russo79.com>
5 pkgdesc="Logitech for Linux"
7 url="http://lg4l.wikia.com/wiki/LG4L_Wiki"
9 depends=('linux>=3.0' 'linux<3.1')
10 makedepends=('linux-headers>=3.0')
12 install=lg4l-git.install
14 _gitroot="git://github.com/ali1234/lg4l.git"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
27 git clone $_gitroot $_gitname
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
34 if [ -d $_gitname-build ] ; then
35 rm -rf $_gitname-build
38 git clone $_gitname $_gitname-build
40 cd "$srcdir/$_gitname-build"
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: