summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 70836792651979c3b8b6a459d5af936c7b3267c1 (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: Benjamin Winger <bmw@disroot.org>

_pkgname=python-sat
pkgname=python-python-sat
pkgver=0.1.8.dev9
pkgrel=1
pkgdesc="A Python library for prototyping with SAT oracles"
arch=(any)
url="https://github.com/pysathq/pysat"
license=(GPL3)
depends=("python" "python-six")
source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha512sums=('53eef81c990868cd39a95da91e3f7789884f590d3b199cd9ed4089cebef39bc2d5d26c80db856dbb8c05436358db7e6bda5d894ece524d11455bb77f25006e6b')
makedepends=(python-build python-installer python-wheel)

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

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