diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -13,6 +13,9 @@ sha256sums=('SKIP') prepare () { sed -i "s|CUDAPATH=/usr/local/cuda|CUDAPATH=/opt/cuda|g" "$pkgname"/Makefile + + # Hax to make the program pick up compare.ctx in /usr/lib + sed -i 's|const char \*kernelFile = "compare.ptx"|const char \*kernelFile = "/usr/lib/gpu_burn/compare.ptx"|g' "$pkgname"/gpu_burn-drv.cpp } build () { @@ -22,5 +25,6 @@ build () { package() { cd "$srcdir/$pkgname" - install -Dm755 gpu_burn "${pkgdir}/usr/bin/gpu_burn" + install -Dm755 gpu_burn "${pkgdir}"/usr/bin/gpu_burn + install -Dm644 compare.ptx "${pkgdir}"/usr/lib/gpu_burn/compare.ptx } |