summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 92eeac0c07da5f8ccb1df9e3594a8210c661e095 (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
pkgname=python-beancount-china-importers
pkgver=r94.d285bf7
pkgrel=1
pkgdesc='Beancount importers for services frequently used in China'
arch=('x86_64')
makedepends=(git python-build python-installer python-wheel)
depends=(beancount python-pymupdf python-beautifulsoup4)
url="https://github.com/jiegec/china_bean_importers"
commit=d285bf7edf20a3b2f25006dddbc0e1494851cc4c
source=("git+https://github.com/jiegec/china_bean_importers.git#commit=$commit")

sha256sums=('SKIP')

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

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

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