Skip to content

Instantly share code, notes, and snippets.

@bobsomers
Created January 26, 2012 03:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobsomers/1680772 to your computer and use it in GitHub Desktop.
Save bobsomers/1680772 to your computer and use it in GitHub Desktop.
Updated PKGBUILD for pycuda-2011.2.2
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
pkgname=pycuda
pkgver=2011.2.2
pkgrel=2
pkgdesc="Python wrapper for Nvidia CUDA"
arch=('i686' 'x86_64')
url="http://mathema.tician.de/software/pycuda"
license=('MIT/X Consortium')
source=(http://pypi.python.org/packages/source/p/pycuda/${pkgname}-${pkgver}.tar.gz)
depends=('cuda-toolkit' 'python2-numpy' 'python2-pytools' 'python2')
optdepends=('python2-pytest')
makedepends=('ctags' 'python2-distribute')
conflicts=('pycuda-git')
sha1sums=('026ca33f66d35c82a087a5ef3f8e0f213575059b')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
python2 ./configure.py \
--cuda-root=/opt/cuda-toolkit \
--boost-compiler=gcc \
--cuda-enable-gl \
--cuda-inc-dir=/opt/cuda-toolkit/include \
--cudadrv-lib-dir=/opt/cuda-toolkit/lib \
--cudart-lib-dir=/opt/cuda-toolkit/lib
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
python2 setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
}
# vim: set noexpandtab tabstop=8 shiftwidth=8 textwidth=132 autoindent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment