1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
4 pkgver=0.9.7%7Egit_1298_g1d9a578
6 pkgdesc="A lightweight & open source microblogging software (twitter identi.ca) in Python."
8 url="http://www.hotot.org/"
10 depends=('pywebkitgtk' 'python-notify' 'python-keybinder' 'dbus-python' 'hicolor-icon-theme')
11 makedepends=('python-distutils-extra' 'python2-distribute')
12 #optdepends=('python2-pyenchant: spell checking support')
13 install="$pkgname.install"
14 source=("https://launchpad.net/~hotot-team/+archive/ppa/+files/${pkgname}_${pkgver//_/-}-0ubuntu0ppa1%7Eoneiric1.tar.gz")
15 md5sums=('1a1d1b110d1eee9bae5a28001ad09cd4')
18 cd "$srcdir/$pkgname-oneiric"
20 # remove google analytics tracking code (tnx to ianux)
21 sed -i '/\/\/ 6. run track code/,+14d' data/js/hotot.js
22 sed -i '/ga.js/d' data/index.html
24 python2 setup.py build
28 cd "$srcdir/$pkgname-oneiric"
30 python2 setup.py install --prefix=/usr --root="$pkgdir"
33 sed -i 's/\#\!.*python$/&2/' `grep -rl '\#\!.*python' "$pkgdir"`