diff options
author | Carlos Aznarán Laos | 2021-08-12 15:23:48 -0500 |
---|---|---|
committer | Carlos Aznarán Laos | 2021-08-12 15:23:48 -0500 |
commit | fa929fcecfe1203111ac5e02eda815143560ac3c (patch) | |
tree | 685f87b8914da981ad8b4633c1c5780755177638 | |
download | aur-fa929fcecfe1203111ac5e02eda815143560ac3c.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 33 |
3 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..02906b910cf6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = python-pyfma + pkgdesc = Fused multiply-add (with a single rounding) for Python + pkgver = 0.1.4 + pkgrel = 1 + url = https://github.com/nschloe/pyfma + arch = x86_64 + license = MIT + checkdepends = python-pytest-codeblocks + makedepends = python-setuptools + makedepends = pybind11 + depends = python-numpy + source = https://github.com/nschloe/pyfma/archive/v0.1.4.tar.gz + sha512sums = 68a9607cc16a07f9ca5c52bb63caf73645d94223aa50052ce828abd0322727bf611948513653d8b3250a251b3ce7364a15ad81cb4bd2007a65caa2f18b64be6a + +pkgname = python-pyfma diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f59ec20aabf5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..96a1e4a4622a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +_base=pyfma +pkgname=python-${_base} +pkgdesc="Fused multiply-add (with a single rounding) for Python" +pkgver=0.1.4 +pkgrel=1 +arch=('x86_64') +url="https://github.com/nschloe/${_base}" +license=(MIT) +depends=(python-numpy) +makedepends=(python-setuptools pybind11) +checkdepends=(python-pytest-codeblocks) +source=(${url}/archive/v${pkgver}.tar.gz) +sha512sums=('68a9607cc16a07f9ca5c52bb63caf73645d94223aa50052ce828abd0322727bf611948513653d8b3250a251b3ce7364a15ad81cb4bd2007a65caa2f18b64be6a') + +export PYTHONPYCACHEPREFIX="${BUILDDIR}/${pkgname}/.cache/cpython/" + +build() { + cd "${_base}-${pkgver}" + python setup.py build +} + +check() { + cd "${_base}-${pkgver}" + python setup.py install --root="${PWD}/tmp_install" --optimize=1 --skip-build + PYTHONPATH="${PWD}/tmp_install$(python -c "import site; print(site.getsitepackages()[0])"):${PYTHONPATH}" python -m pytest --codeblocks +} + +package() { + cd "${_base}-${pkgver}" + export PYTHONHASHSEED=0 + python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" +} |