summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b2e52b27b7fef6f6a9f5166061d6248e3bf991f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Sigmund Vestergaard <sigmundv at gmail dot com>
# Contributor: Feng Wang <feng[dot]wang[at]uni-ulm[dot]de>
# Contributor: Wesley Bowman <wesley.bowman23@gmail.com>

# You can always get the latest version on GitHub (those are unstable) with the
# command:
# sudo pip2 install --upgrade git+https://github.com/lebedov/scikits.cuda.git#egg=scikit

pkgname=scikits-cuda
pkgver=0.5.0b3
pkgrel=1
pkgdesc="Python interface to GPU-powered libraries"
arch=('any')
url="http://scikits.appspot.com/cuda"
license=('BSD')
depends=('python2' 'python2-numpy' 'python2-scipy' 'scikits-base' 'cuda' 'cula')
makedepends=('python2-setuptools' 'subversion')
source=(https://pypi.python.org/packages/source/s/scikits.cuda/scikits.cuda-${pkgver}.tar.gz)
sha256sums=('8d6bfd4a2ce116a34f3c656d4167a380a3d7f4f03bf10008a4acc0b5ee2abca5')

package() {
  cd ${srcdir}/scikits.cuda-${pkgver}

  # ignores any LDFLAGS set in makepkg.conf
  unset LDFLAGS

  python2.7 ./setup.py install --root=${pkgdir}

  sed -i 's/libcula\.so/libcula_lapack\.so/g' ${pkgdir}/usr/lib/python2.7/site-packages/scikits/cuda/cula.py

  rm ${pkgdir}/usr/lib/python2.7/site-packages/scikits/__init__.py
}