summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 41fd4b0e5fc82dc766bbdd4ec1bfc84ee11fcd80 (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
# Maintainer: AlphaJack <alphajack at tuta dot io>

pkgname="fava-review-git"
pkgver=r47.38edad4
pkgrel=1
pkgdesc="Custom review for Beancount in Fava"
url="https://github.com/kubauk/fava-review"
license=("GPL3")
arch=("any")
depends=(    "fava"
             "python-beautifulsoup4"
             "python-petl")
makedepends=("git"
             "python-build"
             "python-installer"
             "python-setuptools-scm"
             "python-wheel")
options=("!strip")
source=("git+$url")
sha256sums=("SKIP")

pkgver() {
 cd "fava-review"
 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build(){
 cd "fava-review"
 python -m build --wheel --no-isolation
}

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