2 # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
3 # for more information on packaging from GIT sources.
5 # Maintainer: Nicklas Overgaard <nicklas@isharp.dk>
6 pkgname=sony-laptop-zseries-git
9 pkgdesc="Adaption and extension for Sony Z-series laptops (and maybe others)"
11 url="http://gitorious.org/sony-laptop-zseries"
14 depends=('linux>=2.6.39')
16 provides=('sony-laptop-zseries')
21 install=sony-laptop-zseries.install
24 md5sums=('cc0f8f31fff437afb934cd0477002ffb')
26 _gitroot=git://gitorious.org/sony-laptop-zseries/sony-laptop-zseries.git
27 _gitname=sony-laptop-zseries
31 msg "Connecting to GIT server...."
33 if [[ -d "$_gitname" ]]; then
34 cd "$_gitname" && git pull origin
35 msg "The local files are updated."
37 git clone "$_gitroot" "$_gitname"
40 msg "GIT checkout done or server timeout"
41 msg "Starting build..."
43 rm -rf "$srcdir/$_gitname-build"
44 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
45 cd "$srcdir/$_gitname-build"
50 patch -i ../make.patch -p1
58 cd "$srcdir/$_gitname-build"
59 make DESTDIR="$pkgdir/" install