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

pkgname="beangrow-git"
pkgver=r15.7dd642b
pkgrel=2
pkgdesc="Returns calculations on portfolios in Beancount"
url="https://github.com/beancount/beangrow"
license=("GPL2")
arch=("any")
provides=("beangrow")
depends=("beancount")
makedepends=("git"
             "python-build"
             "python-installer"
             "python-setuptools-scm"
             "python-wheel")
options=("!strip")
source=("git+$url")
b2sums=('SKIP')

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

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

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