[arch-commits] Commit in python-pycuda/repos (2 files)

Sven-Hendrik Haase svenstaro at gemini.archlinux.org
Sun Oct 31 14:22:02 UTC 2021


    Date: Sunday, October 31, 2021 @ 14:22:01
  Author: svenstaro
Revision: 1035068

archrelease: copy trunk to community-testing-x86_64

Added:
  python-pycuda/repos/community-testing-x86_64/
  python-pycuda/repos/community-testing-x86_64/PKGBUILD
    (from rev 1035067, python-pycuda/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: python-pycuda/repos/community-testing-x86_64/PKGBUILD (from rev 1035067, python-pycuda/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-10-31 14:22:01 UTC (rev 1035068)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+
+pkgname=python-pycuda
+pkgver=2021.1
+pkgrel=5
+pkgdesc="Python wrapper for Nvidia CUDA"
+arch=('x86_64')
+url="https://mathema.tician.de/software/pycuda"
+license=('MIT' 'Apache')
+depends=('boost-libs' 'cuda' 'nvidia-utils' 'python' 'python-numpy' 'python-pytools')
+provides=('pycuda-headers')
+conflicts=('pycuda-headers')
+replaces=('pycuda-headers')
+source=("https://pypi.io/packages/source/p/pycuda/pycuda-$pkgver.tar.gz")
+makedepends=('ctags' 'python-setuptools' 'python-numpy' 'mesa' 'cuda' 'boost' 'nvidia-utils')
+sha512sums=('1df09f59e254f7e39b630ff41d22237ab0c81c0e6e7b7611c57eb98ade8531356b9cb3e381e6fa7e8495a46c465458febaf8ad56ceb8d570b5b25defb6dd55a9')
+
+build() {
+   _arch=''
+   [[ "$CARCH" = "x86_64" ]] && _arch='64'
+
+   cd pycuda-$pkgver
+   python ./configure.py \
+                  --cuda-root=/opt/cuda \
+                  --cuda-inc-dir=/opt/cuda/include \
+                  --cudadrv-lib-dir=/opt/cuda/lib${_arch} \
+                  --cudart-lib-dir=/opt/cuda/lib${_arch} \
+                  --no-use-shipped-boost \
+                  --boost-python-libname=boost_python3
+   make
+}
+
+package() {
+   cd pycuda-$pkgver
+   python setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1
+
+   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}



More information about the arch-commits mailing list