updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / linux-powersave-scripts / PKGBUILD
blob9666179b2a0efda51bd8ea5015067cdd9dc148ec
1 # Maintainer: Fred Morcos <fred.morcos@gmail.com>
2 # Development: https://gitorious.org/linux-powersave-scripts
4 pkgname=linux-powersave-scripts
5 pkgver=20110929
6 pkgrel=1
7 pkgdesc="A (currently simple) script that could help save some power on laptops running Linux."
8 url="https://gitorious.org/linux-powersave-scripts"
9 arch=('any')
10 license=('Public Domain')
11 depends=('linux' 'bash' 'hdparm' 'wireless_tools' 'ethtool')
12 makedepends=('git')
14 _gitroot="git://gitorious.org/linux-powersave-scripts/linux-powersave-scripts.git"
15 _gitname="linux-powersave-scripts"
17 package() {
18     msg "Connecting to $_gitname repository..."
19     if [ -d "$_gitname" ]; then
20         cd "$_gitname" && git pull origin
21         msg "The local files are updated."
22     else
23         git clone "$_gitroot" && cd "$_gitname"
24     fi
26     install -vDm755 powersave  "$pkgdir/usr/bin/powersave"
27     install -vDm644 DEPENDENCIES "$pkgdir/usr/share/doc/linux-powersave-scripts/DEPENDENCIES"
28     install -vDm644 CONTRIBUTORS "$pkgdir/usr/share/doc/linux-powersave-scripts/CONTRIBUTORS"