updated on Wed Jan 18 04:00:29 UTC 2012
[aur-mirror.git] / power-play-switcher-svn / PKGBUILD
blobe3d238dfd1007035fc9a8cf5a86f88c2ae925299
1 # Maintainer: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2 # Source: https://github.com/nicoulaj/archlinux-packages
3 pkgname=power-play-switcher-svn
4 pkgver=5
5 pkgrel=1
6 pkgdesc="PowerPlay GUI for the open source ATI driver."
7 arch=(any)
8 url="http://code.google.com/p/power-play-switcher"
9 license=(GPL3)
10 depends=(python2 xf86-video-ati)
11 makedepends=(subversion)
12 install=power-play-switcher.install
13 changelog=Changelog
14 conflicts=(power-play-switcher)
15 source=(power-play-switcher.desktop)
16 md5sums=('3bb7a8b8cdcf199e4aa776f1503c88f3')
18 _svntrunk="http://power-play-switcher.googlecode.com/svn/trunk"
19 _svnmod="trunk"
21 build() {
23   msg2 "Starting SVN checkout..."
24   cd "${srcdir}"
25   if [ -d ${_svnmod}/.svn ]; then
26     (cd ${_svnmod} && svn up -r ${pkgver})
27   else
28     svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
29   fi
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
37 package() {
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: