summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorZhuoyun Wei2018-01-10 11:48:30 +0800
committerZhuoyun Wei2018-01-10 11:49:02 +0800
commit02baf76dbc4c39889b5d23b201c7db3738847cbd (patch)
tree4a155e03a4c9172645b35eeb545f6c6d1a4951de /PKGBUILD
parent00a3a844b09812f41da729027754115fca6186fd (diff)
downloadaur-02baf76dbc4c39889b5d23b201c7db3738847cbd.tar.gz
[fava] Switch to PyPI wheel
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD13
1 files changed, 6 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2df5775fd09..52a31ef3c6e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,17 +3,16 @@
pkgname='fava'
pkgdesc='Web interface for beancount'
pkgver=1.6
-pkgrel=1
+pkgrel=2
arch=('any')
url='https://github.com/beancount/fava'
license=('GPL')
-source=("https://github.com/beancount/fava/archive/v${pkgver}.tar.gz")
-sha256sums=('cef1d26a474a2d6ceeb794ff0a301d22cee409f5ecf8253a4807ff56903f1ebc')
+source=("https://files.pythonhosted.org/packages/py3/f/fava/fava-${pkgver}-py3-none-any.whl")
+noextract=("fava-${pkgver}-py3-none-any.whl")
+sha256sums=('4f9d36f41b3240dded7c3bce930d823733c707aff2e0bc9b64c2ea50445e2f0c')
depends=('beancount' 'python-click' 'python-markdown2' 'python-flask' 'python-flask-babel')
-makedepends=('npm')
package () {
- cd "${pkgname}-${pkgver}"
- make
- python setup.py install --prefix=/usr --root="${pkgdir}"
+ PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps *.whl
+ python -O -m compileall "${pkgdir}/usr/lib/python3.6/site-packages/${pkgname}/"
}