summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 67112ef89edfb5fca05dbd69c6a68d111f77eca7 (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
# Maintainer: Jax Young <jaxvanyang@gmail.com>
_name=pysgf
pkgname="python-$_name"
pkgver=0.9.0
pkgrel=1
pkgdesc="Simple SGF parser"
arch=('any')
url="https://pypi.org/project/pysgf"
license=('MIT')
depends=('python>=3.6')
makedepends=(python-build python-installer python-wheel python-poetry-core)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('ff6a95e3891818a12e09af022aebec0bfaeca8617599f34e647a94ae02ee0303')

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

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