From 10d2f13a5b9ea94910496dc8c061ddc6efeecb14 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 29 Nov 2014 18:23:44 -0500 Subject: add pcr/weboob --- pcr/weboob/PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ pcr/weboob/weboob.install | 12 ++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 pcr/weboob/PKGBUILD create mode 100644 pcr/weboob/weboob.install 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 +# Maintainer (AUR): speps + +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 +} -- cgit v1.2.3-2-g168b