summaryrefslogtreecommitdiff
path: root/pcr/weboob/PKGBUILD
blob: 6e2c450e6ab6c88b7ad9e68333964399ce8bd8ae (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
36
37
38
39
40
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
# Maintainer (AUR): Gilles Hamel <hamelg@laposte.net>

pkgname=weboob
pkgver=1.2
pkgrel=2
pkgdesc="Web Out Of Browsers provides several applications to interact with a lot of websites."
arch=('any')
url="http://weboob.org/"
license=('GPL')
install='weboob.install'
depends=('python2-pyqt5' 'phonon-qt5' 'python2-dateutil' 'python2-prettytable'
         'python2-requests' 'python2-google-api-python-client'
         'python2-feedparser' 'python2-cssselect' 'python2-html2text'
         'python2-imaging' 'python2-mechanize' 'python2-simplejson'
         'python2-lxml' 'python2-yaml' 'python2-futures'
         'which')
makedepends=('python2-setuptools')
optdepends=('gnupg: check for repository authenticity'
            'python2-routes: contrib backends'
            'python2-webob: contrib backends'
            'python2-mako: contrib backends'
            'pywebkitgtk: contrib backends'
            'python2-pysqlite: contrib backends'
            'python2-pillow: PIL replacement'
            'python2-termcolor: color formatting'
            'python2-nose: test suite'
            'bash-completion: to enable bash completion')
source=("https://symlink.me/attachments/download/342/$pkgname-$pkgver.tar.gz")
sha256sums=('1e3b7e35bd1e5d203e5d716be4a25e898aba6887b3c3b8341e3a0ce2ad8e87b0')

package() {
  cd $pkgname-$pkgver

  sed -i "s/exclude=\['modules'\]/exclude=['modules', 'modules.*']/" setup.py

  python2 setup.py install --qt --xdg --prefix=/usr --root="$pkgdir"
  install -Dm 644 tools/weboob_bash_completion \
      "$pkgdir/etc/bash_completion.d/weboob"
}