Date: Friday, April 14, 2023 @ 00:03:11
Author: dvzrv
Revision: 1445967
archrelease: copy trunk to community-staging-x86_64
Added:
python-llvmlite/repos/community-staging-x86_64/
python-llvmlite/repos/community-staging-x86_64/PKGBUILD
(from rev 1445966, python-llvmlite/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-llvmlite/repos/community-staging-x86_64/PKGBUILD (from rev
1445966, python-llvmlite/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-14 00:03:11 UTC (rev 1445967)
@@ -0,0 +1,41 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+
+_pkgname=llvmlite
+pkgbase="python-${_pkgname}"
+pkgname=("${pkgbase}")
+pkgver=0.39.1
+_commit=b0a4fd260a92d474331e45a881c9726a2f0158ca # refs/tags/v0.39.1
+pkgrel=2
+pkgdesc='A Lightweight LLVM Python Binding for Writing JIT Compilers'
+arch=('x86_64')
+depends=('gcc-libs' 'glibc' 'python' 'llvm11-libs')
+makedepends=('cmake' 'llvm11' 'git' 'python-build' 'python-installer'
'python-wheel' 'python-setuptools-scm')
+checkdepends=('python-pytest')
+url="https://github.com/numba/${_pkgname}"
+license=('BSD')
+
+source=("${_pkgname}::git+${url}#tag=$_commit")
+sha256sums=('SKIP')
+
+prepare() {
+ cd "${_pkgname}"
+ sed -e 's/3.11/3.12/' -i setup.py
+}
+
+build() {
+ cd "${_pkgname}"
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd "${_pkgname}"
+ pytest -vv $_pkgname/tests
+}
+
+package() {
+ cd "${_pkgname}"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+}