summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 624ba262d3d37d87c2e995dc8de62976b3cc06fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Contributor: William Díaz <wdiaz [at] archlinux [dot] us>

pkgname=cpyrit-cuda
pkgver=0.4.0
pkgrel=2
pkgdesc="Pyrit support for Nvidia-CUDA."
url="https://code.google.com/p/pyrit/"
license=('GPL3')
arch=('i686' 'x86_64')
depends=('python2' 'openssl' 'zlib' 'nvidia' 'pyrit')
makedepends=('gcc' 'python2' 'cuda')
source=(https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/pyrit/${pkgname}-${pkgver}.tar.gz)
md5sums=('e3eaf2bbd841409326670cb8f501f2c6')

package() {
 #sed -e "s|'/opt/cuda'|'/opt/cuda-toolkit'|" -e "s|' --host-compilation C'||" -i setup.py
sed -e "s|' --host-compilation C'||" -i ${srcdir}/cpyrit-cuda-0.4.0/setup.py
echo "ln -s /opt/cuda-toolkit /opt/cuda"
cd ${srcdir}/${pkgname}-${pkgver}
python2 setup.py build
python2 setup.py install --root=${pkgdir}
}