1 # Contributor: Ray Rashif <schivmeister@gmail.com>
6 pkgdesc="GUI to Linux-PHC CPU undervolting"
8 url="http://www.linux-phc.org/"
10 depends=('linux-phc' 'pygtk')
11 makedepends=('subversion')
14 install=phctool.install
18 _svntrunk=http://phctool.googlecode.com/svn/trunk/
24 if [ -d $_svnmod/.svn ]; then
25 (cd $_svnmod && svn up -r $pkgver)
27 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
30 msg "SVN checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_svnmod-build"
34 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
35 cd "$srcdir/$_svnmod-build"
41 mkdir -p $pkgdir/usr/share/doc
42 cp -r doc $pkgdir/usr/share/doc/phctool
43 mkdir -p $pkgdir/usr/lib/phctool
44 cp -r inc $pkgdir/usr/lib/phctool/
46 sed -i 's:phctool.sh:phctool.py:g' phctray.py
47 install -m755 phc{tool,tray}.py $pkgdir/usr/lib/phctool/
48 install -Dm755 ../phctool.sh $pkgdir/usr/bin/phctool
49 install -m755 ../phctray.sh $pkgdir/usr/bin/phctray
51 find $pkgdir -name "*.pyc" -exec rm -f {} \;
53 md5sums=('39a0fa41252377cde6b0663cecbd9a85'
54 'e364437b4ba3ca16a4995a5e2895a513')