summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d12c58c8facd412cb9d22a180d6f4729ea612692 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: willemw <willemw12@gmail.com>

pkgname=mythtv-indicator-bzr
pkgver=r9
pkgrel=3
pkgdesc="MythTV panel indicator"
url="http://www.mythtv.org/wiki/MythTV-indicator"
license=('GPL3')
arch=('any')
depends=('gtk3' 'libappindicator-gtk3' 'libnotify' 'python2-dateutil' 'python2-gobject' 'python2-lxml' 'python2-pillow' 'python2-simplejson')
makedepends=('bzr' 'python-dulwich')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=($pkgname::bzr+http://bazaar.launchpad.net/~r-d-vaughan/mythtv-indicator/trunk/)
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  printf "r%s" "$(bzr revno)"
}

prepare() {
  cd $pkgname

  cd mythtv-indicator/usr/share/mythtv-indicator/
  sed -i "s|^#![ ]*/usr/bin/env[ ]*python[ ]*$|#!/usr/bin/env python2|" mythtv-indicator.py importcode/*.py
  sed -i "s|^#![ ]*/usr/bin/python[ ]*$|#!/usr/bin/python2|" mythtv-indicator.py importcode/*.py
  sed -i "s|^\(.*[ ]*=[ ]*u'\)python |\1python2 |" mythtv-indicator.py importcode/*.py
}

package() {
  cd $pkgname
  cp -a mythtv-indicator/* "$pkgdir"
}