1 # Maintainer: Fred Morcos <fred.morcos@gmail.com>
2 # Development: https://gitorious.org/linux-powersave-scripts
4 pkgname=linux-powersave-scripts
7 pkgdesc="A (currently simple) script that could help save some power on laptops running Linux."
8 url="https://gitorious.org/linux-powersave-scripts"
10 license=('Public Domain')
11 depends=('linux' 'bash' 'hdparm' 'wireless_tools' 'ethtool')
14 _gitroot="git://gitorious.org/linux-powersave-scripts/linux-powersave-scripts.git"
15 _gitname="linux-powersave-scripts"
18 msg "Connecting to $_gitname repository..."
19 if [ -d "$_gitname" ]; then
20 cd "$_gitname" && git pull origin
21 msg "The local files are updated."
23 git clone "$_gitroot" && cd "$_gitname"
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"