mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
33 lines
955 B
Text
33 lines
955 B
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=py3-pycosat
|
|
_pkgname=pycosat
|
|
pkgver=0.6.4
|
|
pkgrel=0
|
|
pkgdesc="Python bindings to picosat (a SAT solver)"
|
|
url="https://github.com/conda/pycosat"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="python3-dev"
|
|
source="https://github.com/conda/pycosat/archive/$pkgver/$_pkgname-$pkgver.tar.gz
|
|
musl-compat.patch
|
|
"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="$(dirname ./build/lib.linux-*-3.*/*.so)" \
|
|
python3 test_pycosat.py
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
0c25e54596b29fc6f1e1a8dbe8e95ead42ae016d825e83a752a7d179fac315602421387dcfdd05e18dd59ea2ef1f1d708fac1eca300b40be3144cf4a93ae8c73 pycosat-0.6.4.tar.gz
|
|
57fae28c1d9f9e5fd2c8800ec664e0c43b04935f540ab2576fd660cb902e62edcc727aab3f7dacd33db1e775d49ebdffc24fbe4a4136ec5e3ea54cc5c37b2cef musl-compat.patch
|
|
"
|