summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 66e5d5f1d64f02993ad7c8d4908c7a8b32100014 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Maintainer: Carlos José Ruiz-Henestrosa Ruiz <ruizh.cj@gmail.com>
# Contributor: Ng Oon-Ee <ngoonee.talk@gmail.com>
pkgname=fava-git
_name=${pkgname%-git}
pkgver=1.21.r29.g877e4348
pkgrel=1
pkgdesc="Web interface for beancount"
arch=('any')
url="https://beancount.github.io/fava/"
license=('MIT')
groups=()
depends=('beancount>=2.3.0'
         'python>=3.6'
         'python-setuptools'
         'python-babel>=2.6.0'
         'python-cheroot'
         'python-flask-babel>=1.0.0'
         'python-flask>=0.10.1'
         'python-jinja>=2.10'
         'python-click'
         'python-markdown2>=2.3.0'
         'python-ply'
         'python-simplejson>=3.2.0'
         'python-werkzeug>=0.15.0')

optdepends=('python-pyexcel>=0.2.2: Spreadsheet (ODS/XLS/XLSX) support'
            'python-pyexcel-ods3>=0.1.1: ODS file support'
            'python-pyexcel-xls>=0.1.0: XLS file support'
            'python-pyexcel-xlsx>=0.1.0: XLSX file support')


makedepends=('git'
             'nodejs'
             'npm'
             'python-build'
             'python-installer'
	     'python-setuptools-scm'
             'python-wheel')

provides=("${_name}")
conflicts=("${_name}" "beancount-fava-git")
replaces=("beancount-fava-git")
source=('git+https://github.com/beancount/fava.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${_name}"
	git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/${_name}"
	make
	python -m build --wheel --no-isolation
}

package() {
	cd "$srcdir/${_name}"
	python -m installer --destdir="$pkgdir" dist/*.whl
}