updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / power-play-switcher / PKGBUILD
blobb43330e78c265c14330807e4cf8881e9d8a695cd
1 # Maintainer: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2 # Source: https://github.com/nicoulaj/archlinux-packages
3 pkgname=power-play-switcher
4 pkgver=0.3
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-svn)
15 source=(http://${pkgname}.googlecode.com/files/PowerPlaySwitcher-${pkgver}.zip
16         power-play-switcher.desktop)
17 md5sums=('3c475e7eed167985a75142a0838f6e8f'
18          '3bb7a8b8cdcf199e4aa776f1503c88f3')
20 package() {
22   msg2 "Fix Python script shebang..."
23   sed -i -e 's/\#\!\/usr\/bin\/python/\#\!\/usr\/bin\/env\ python2/' "${srcdir}"/PowerPlaySwitcher.py
25   msg2 "Install script at /usr/bin/power-play-switcher..."
26   install -Dm755 "${srcdir}"/PowerPlaySwitcher.py "${pkgdir}"/usr/bin/power-play-switcher
28   msg2 "Install desktop application entry..."
29   install -Dm644 "${srcdir}"/power-play-switcher.desktop "${pkgdir}"/usr/share/applications/power-play-switcher.desktop
33 # vim:set ts=2 sw=2 et: