1 # Contributor: grimi <grimi at poczta dot fm>
6 pkgdesc="Kernel module for HP OmniBook,Pavilion,Toshiba and Compal ACL00 laptops"
8 url="http://omnibook.sourceforge.net"
11 makedepends=('git' 'linux-headers')
12 conflicts=('omnibook')
14 source=('omnibook-kernel-3.0.patch')
15 md5sums=('149b5ae2d66998fdc2490f15e99b1e35')
16 install=$pkgname.install
19 _gitroot="git://omnibook.git.sourceforge.net/gitroot/omnibook/omnibook"
24 msg "Connecting to GIT server...."
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
30 git clone $_gitroot $_gitname
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf "$srcdir/$_gitname-build"
37 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
40 #Build and install kernel module
41 patch -Np0 -i ../omnibook-kernel-3.0.patch
44 install -Dm644 omnibook.ko.gz \
45 "${pkgdir}"/lib/modules/extramodules-$(uname -r|sed 's/\(.\..\).*/\1/')-ARCH/omnibook.ko.gz