1 # Maintainer: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2 # Source: https://github.com/nicoulaj/archlinux-packages
3 pkgname=power-play-switcher-svn
6 pkgdesc="PowerPlay GUI for the open source ATI driver."
8 url="http://code.google.com/p/power-play-switcher"
10 depends=(python2 xf86-video-ati)
11 makedepends=(subversion)
12 install=power-play-switcher.install
14 conflicts=(power-play-switcher)
15 source=(power-play-switcher.desktop)
16 md5sums=('3bb7a8b8cdcf199e4aa776f1503c88f3')
18 _svntrunk="http://power-play-switcher.googlecode.com/svn/trunk"
23 msg2 "Starting SVN checkout..."
25 if [ -d ${_svnmod}/.svn ]; then
26 (cd ${_svnmod} && svn up -r ${pkgver})
28 svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
30 msg2 "SVN checkout done or server timeout"
32 msg2 "Fix Python script shebang..."
33 sed -i -e 's/\#\!\/usr\/bin\/python/\#\!\/usr\/bin\/env\ python2/' "${srcdir}"/${_svnmod}/PowerPlaySwitcher.py
39 msg2 "Install script at /usr/bin/power-play-switcher..."
40 install -Dm755 "${srcdir}"/${_svnmod}/PowerPlaySwitcher.py "${pkgdir}"/usr/bin/power-play-switcher
42 msg2 "Install desktop application entry..."
43 install -Dm644 "${srcdir}"/power-play-switcher.desktop "${pkgdir}"/usr/share/applications/power-play-switcher.desktop
47 # vim:set ts=2 sw=2 et: