updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / hotot / PKGBUILD
blob9f0c2f71ce88531094d8fd32aa34ccd19f5a5135
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=hotot
4 pkgver=0.9.7%7Egit_1298_g1d9a578
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=('1a1d1b110d1eee9bae5a28001ad09cd4')
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"`