updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / hotot / PKGBUILD
blobf7d0aa37414f168b192eca759b8cd9f72d50543f
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=hotot
4 pkgver=0.9.7%7Egit_1337_gafe8291
5 pkgrel=1
6 pkgdesc="A lightweight & open source microblogging software (twitter identi.ca) in Python."
7 arch=('any')
8 url="http://www.hotot.org/"
9 license=('LGPL3')
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=('a87dd14a5146e6a902d002b5a30569ab')
17 build() {
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
27 package() {
28   cd "$srcdir/$pkgname-oneiric"
30   python2 setup.py install --prefix=/usr --root="$pkgdir"
32   # python2 fixes
33   sed -i 's/\#\!.*python$/&2/' `grep -rl '\#\!.*python' "$pkgdir"`