summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7c2166e7c4a419fb1969906ca13eca20a1ece8a9 (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
# Maintainer: Aseem Athale <athaleaseem@gmail.com>
# Contributor: kpcyrd <git@rxv.cc>

_pyname="mt940"
pkgname="python-mt-940"
pkgver="4.30.0"
pkgrel=4
pkgdesc="A library to parse MT940 files and returns smart Python collections for statistics and manipulation"
arch=(any)
url="https://github.com/WoLpH/mt940"
license=('BSD')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("https://github.com/WoLpH/mt940/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha512sums=('f6b79e6296baaca080448b36b7b7d366e8e7fc58806c58139ea07e31bd428859ee3231e126c44155d6badb26559db89a1f73bfa5bab1d916962214b8d3c5d343')
b2sums=('c1a90c80f30f3540705a3dc79848f1e563652934d7da297e9542220be02ce26e65268bc98e5361cd6197bb84244285a9dae95f53c04402ec9ec00192305ee0ad')

build() {
  cd "${_pyname}-${pkgver}"
	python -m build --wheel --no-isolation
}

package() {
  cd "${_pyname}-${pkgver}"
	python -m installer --destdir "$pkgdir" dist/*.whl
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 et: