updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / sony-laptop-zseries-git / PKGBUILD
blobcf26bd8de28f93fc0982a865e9f83d9626e28479
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
7 pkgver=20111001
8 pkgrel=1
9 pkgdesc="Adaption and extension for Sony Z-series laptops (and maybe others)"
10 arch=(any)
11 url="http://gitorious.org/sony-laptop-zseries"
12 license=('GPL')
13 groups=()
14 depends=('linux>=2.6.39')
15 makedepends=('git')
16 provides=('sony-laptop-zseries')
17 conflicts=()
18 replaces=()
19 backup=()
20 options=()
21 install=sony-laptop-zseries.install
22 source=(make.patch)
23 noextract=()
24 md5sums=('cc0f8f31fff437afb934cd0477002ffb')
26 _gitroot=git://gitorious.org/sony-laptop-zseries/sony-laptop-zseries.git
27 _gitname=sony-laptop-zseries
29 build() {
30   cd "$srcdir"
31   msg "Connecting to GIT server...."
33   if [[ -d "$_gitname" ]]; then
34     cd "$_gitname" && git pull origin
35     msg "The local files are updated."
36   else
37     git clone "$_gitroot" "$_gitname"
38   fi
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"
47   #
48   # Patch makefile
49   #
50   patch -i ../make.patch -p1
51   #
52   # BUILD HERE
53   #
54   make all
57 package() {
58   cd "$srcdir/$_gitname-build"
59   make DESTDIR="$pkgdir/" install