Date: Saturday, May 6, 2023 @ 18:41:32
Author: arojas
Revision: 1459069
archrelease: copy trunk to community-x86_64
Added:
python-qdldl/repos/
python-qdldl/repos/community-x86_64/
python-qdldl/repos/community-x86_64/PKGBUILD
(from rev 1459068, python-qdldl/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-qdldl/repos/community-x86_64/PKGBUILD (from rev 1459068,
python-qdldl/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD (rev 0)
+++ repos/community-x86_64/PKGBUILD 2023-05-06 18:41:32 UTC (rev 1459069)
@@ -0,0 +1,33 @@
+# Maintainer: Antonio Rojas <[email protected]>
+
+_pyname=qdldl
+pkgname=python-$_pyname
+pkgver=0.1.7
+pkgrel=2
+pkgdesc='Python interface to the QDLDL free LDL factorization routine for
quasi-definite linear systems'
+url='https://github.com/oxfordcontrol/qdldl-python/'
+license=(Apache)
+arch=(x86_64)
+depends=(python-scipy)
+makedepends=(python-build python-installer python-setuptools python-wheel
pybind11 cmake)
+checkdepends=(python-pytest)
+source=(https://pypi.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz)
+sha256sums=('6c86639d11e301e78af2cce885249a286f675cce96d0e6d60f5b14f859d0f10e')
+
+build() {
+ cd $_pyname-$pkgver
+ python -m build --wheel --no-isolation --skip-dependency-check
+}
+
+check() {
+ cd $_pyname-$pkgver
+ python -m venv --system-site-packages test-env
+ test-env/bin/python -m installer dist/*.whl
+ test-env/bin/python -m pytest -v
+}
+
+package() {
+ cd $_pyname-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}