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

pkgname="fava-portfolio-summary-git"
pkgver=r20.8730fb4
pkgrel=1
pkgdesc="Fava extension to display a portfolio summary"
url="https://github.com/PhracturedBlue/fava-portfolio-summary"
license=("GPL3")
arch=("any")
depends=(    "fava")
makedepends=("git"
             "python-build"
             "python-installer"
             "python-setuptools-scm"
             "python-wheel")
options=("!strip")
source=("git+$url")
sha256sums=("SKIP")

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

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

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