diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-11-29 18:23:44 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-11-29 18:23:44 -0500 |
commit | 10d2f13a5b9ea94910496dc8c061ddc6efeecb14 (patch) | |
tree | f3674b3b10d283b9838a663d17fad0bc46c69335 /pcr/weboob | |
parent | 07af351dfc8518fdc4894bf4ef4e5a383bffd8af (diff) |
add pcr/weboob
Diffstat (limited to 'pcr/weboob')
-rw-r--r-- | pcr/weboob/PKGBUILD | 46 | ||||
-rw-r--r-- | pcr/weboob/weboob.install | 12 |
2 files changed, 58 insertions, 0 deletions
diff --git a/pcr/weboob/PKGBUILD b/pcr/weboob/PKGBUILD new file mode 100644 index 000000000..a1748c397 --- /dev/null +++ b/pcr/weboob/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Maintainer (AUR): speps <speps@aur.archlinux.dot.org> + +pkgname=weboob +pkgver=1.0 +pkgrel=1 +pkgdesc="A collection of applications to interact websites without a web browser." +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') + +package() { + cd $pkgname-$pkgver + $_python setup.py install --optimize=1 --root="$pkgdir" \ + --qt --xdg +} diff --git a/pcr/weboob/weboob.install b/pcr/weboob/weboob.install new file mode 100644 index 000000000..029294d67 --- /dev/null +++ b/pcr/weboob/weboob.install @@ -0,0 +1,12 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor 2> /dev/null + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |