Advertisement
Guest User

AUR/optix 7.7.0

a guest
Apr 16th, 2023
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.22 KB | Software | 0 0
  1. # Maintainer: Yuan Zhou <xyyqzy@hotmail.com>
  2. pkgname=optix
  3. pkgver=7.7.0
  4. pkgrel=1
  5. pkgdesc="An application framework for achieving optimal ray tracing performance on the GPU."
  6. arch=('x86_64')
  7. url="https://developer.nvidia.com/optix"
  8. license=('custom:NVIDIA')
  9. depends=('cuda')
  10. options=(!strip)
  11. _script="NVIDIA-OptiX-SDK-$pkgver-linux64-x86_64.sh"
  12. source=("file://$_script"
  13.         "file://cmake.patch")
  14. sha512sums=('d81be0ad65edd49bbb1d078a3e005dc38b24042f5d0880e328eb7ac5c584ee5fcf48da50150d5357282e94333c42cbb21e0a6e2860e02e9d48299cd0db201874'
  15.             'c2b3f122bf4e5d1bd987c3ce9693b24d2acd55f71f7366e49ebc0ba2f800945e6ddde439428761c6c12ec77f34a9334fb6900af2c1b10c40dd2905bb58c9ded2')
  16.  
  17. if ! [ -f $_script ]; then
  18.     msg2 "Please manually download $_script to $PWD from https://developer.nvidia.com/designworks/optix/download."
  19.     exit 1
  20. fi
  21.  
  22. package() {
  23.     mkdir -p "$pkgdir/opt/optix"
  24.     sh "$srcdir/$_script" --prefix="$pkgdir/opt/optix" --exclude-subdir --skip-license
  25.     patch "$pkgdir/opt/optix/SDK/CMake/FindOptiX.cmake" "$srcdir/cmake.patch"
  26.     mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
  27.     ln -s /opt/optix/doc/OptiX_EndUserLicense.pdf "$pkgdir/usr/share/licenses/$pkgname/OptiX_EndUserLicense.pdf"
  28. }
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement