summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e9acf8d16e6d8ec0d9be52a964a69ccf187eeed2 (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: a821 at (nospam) mail dot de
# Contributor: acxz <akashpatel2008 at yahoo dot com>

pkgname=python-chess
pkgver=1.11.2
pkgrel=1
pkgdesc="Chess library with move generation/validation and common format support"
arch=(any)
url=https://github.com/niklasf/python-chess
license=('GPL-3.0-or-later')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/niklasf/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('cd920994700e700c0354f56b73a2591f652a44fa2ff28552d89c975bd820c647')

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

check() {
  cd $pkgname-$pkgver
  python test.py
}

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