1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#Maintainer: Yichao Yu <[email protected]>
#Contributor: Yichao Yu <[email protected]>

pkgname=gnome-shell-cpufreq-git
pkgver=20111117
pkgrel=1
install='gschemas.install'
pkgdesc="changing cpu frequency in gnome-shell, git version."
arch=('any')
url="https://github.com/yuyichao/gnome-shell-cpufreq"
license=('GPL')
depends=('gnome-shell' 'gnome-applets')
makedepends=('git')

_gitroot='git://github.com/yuyichao/gnome-shell-cpufreq.git'
_gitname='gnome-shell-cpufreq'
package()
{
  cd "$srcdir"

  msg "Connecting to github.com"

  if [ -d "$startdir/src/$_gitname" ] ;then
    cd "$startdir/src/$_gitname" && git pull origin
    msg "The local files are updated."
  else
    git clone "$_gitroot"
  fi
  msg "GIT checkout done or server timeout"

  cd "$srcdir/$_gitname"

  git checkout master

  ./install -p "$pkgdir" --nopost
}