summaryrefslogtreecommitdiff
path: root/pcr/weboob
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/weboob')
-rw-r--r--pcr/weboob/PKGBUILD68
1 files changed, 31 insertions, 37 deletions
diff --git a/pcr/weboob/PKGBUILD b/pcr/weboob/PKGBUILD
index a1748c397..6e2c450e6 100644
--- a/pcr/weboob/PKGBUILD
+++ b/pcr/weboob/PKGBUILD
@@ -1,46 +1,40 @@
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
-# Maintainer (AUR): speps <speps@aur.archlinux.dot.org>
+# Maintainer (AUR): Gilles Hamel <hamelg@laposte.net>
pkgname=weboob
-pkgver=1.0
-pkgrel=1
-pkgdesc="A collection of applications to interact websites without a web browser."
+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=('AGPL3')
-
-# This list is based on setup.py
-# Supposedly python3 compatible, but tools/date.py throws a syntax error
-_python=python2
-depends=(
- $_python-pyqt4
-
- $_python-lxml
- $_python-feedparser
- $_python-requests
- $_python-dateutil
- $_python-yaml
- $_python-prettytable
-
- $_python-pillow
-)
-if [[ $_python == python2 ]]; then
- depends+=(
- python2-gdata # for Python < 3.0
- python2-mechanize # for Python < 3.0
- python2-futures # for Python < 3.2
- )
-fi
-
-makedepends=($_python-setuptools)
-optdepends=('libyaml: for more performance'
- "$_python-simplejson: for more performance")
-install="$pkgname.install"
-source=("https://symlink.me/attachments/download/289/$pkgname-$pkgver.tar.gz")
-md5sums=('38f832f1b8654441adafe8558faa7109')
+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
- $_python setup.py install --optimize=1 --root="$pkgdir" \
- --qt --xdg
+
+ 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"
}