updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / weboob / PKGBUILD
blobdb9f8d36724941d727c70a2c8ea00a5f819e6508
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=weboob
4 pkgver=0.9.2
5 pkgrel=1
6 pkgdesc="Web Out Of Browsers provides several applications to interact with a lot of websites."
7 arch=('any')
8 url="http://weboob.org/"
9 license=('GPL')
10 depends=('python2-pyqt' 'python2-elementtidy' 'python2-prettytable' 'python2-webob'
11          'python-clientform' 'python2-dateutil' 'python2-feedparser' 'python-gdata'
12          'python-html2text' 'python-html5lib' 'python-imaging' 'python-lxml'
13          'python2-mako' 'python-mechanize' 'python2-nose' 'python-pysqlite' 'pygtk'
14          'python-routes' 'python2-yaml' 'pywebkitgtk' 'pyxdg')
15 optdepends=('python-simplejson: simplejson backend')
16 install="$pkgname.install"
17 source=("http://weboob.org/attachments/download/163/$pkgname-$pkgver.tar.gz")
18 md5sums=('3762ac9d9baacd51333ceab7878842f0')
20 build() {
21   cd "$srcdir/$pkgname-$pkgver"
23   export PYTHON="python2"
25   # remove forced white background property
26   sed -i "48,50d" weboob/applications/qvideoob/ui/video.ui
27   sed -i "146,150d" weboob/applications/qvideoob/ui/main_window.ui
30 package() {
31   cd "$srcdir/$pkgname-$pkgver"
33   python2 setup.py install --prefix=/usr --root="$pkgdir"
35   # python2 fixes
36   sed -i "s|env python|&2|" `grep -rl "env python" "$pkgdir"`