Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2020
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. # Maintainer: gee
  2.  
  3. pkgname=vkbasalt
  4. pkgver=0.3.0
  5. pkgrel=1
  6. pkgdesc='A Vulkan post-processing layer. Currently the effects are CAS, FXAA, SMAA, deband.'
  7. arch=('x86_64')
  8. url='https://github.com/DadSchoorse/vkBasalt'
  9. license=('zlib')
  10. depends=('glslang' 'vulkan-headers' 'vulkan-tools' 'vulkan-validation-layers' 'lib32-glibc' 'lib32-gcc-libs')
  11. source=("git+https://github.com/DadSchoorse/vkBasalt.git#tag=v${pkgver}"
  12. "git+https://github.com/DadSchoorse/reshade.git#commit=8d0a5db"
  13. "git+https://github.com/skaslev/gl3w.git#commit=7729692"
  14. "git+https://github.com/ocornut/imgui.git#commit=927580d"
  15. "git+https://github.com/TsudaKageyu/minhook.git#commit=8fda4f5"
  16. "git+https://github.com/KhronosGroup/SPIRV-Headers.git#commit=af64a9e"
  17. "git+https://github.com/nothings/stb.git#commit=f67165c"
  18. "git+https://github.com/nemtrif/utfcpp.git#commit=c3f9261"
  19. "git+https://github.com/KhronosGroup/Vulkan-Headers.git#commit=5bc459e")
  20. sha256sums=(SKIP
  21. SKIP
  22. SKIP
  23. SKIP
  24. SKIP
  25. SKIP
  26. SKIP
  27. SKIP
  28. SKIP)
  29. install=vkbasalt.install
  30.  
  31. prepare() {
  32. cd ${srcdir}/vkBasalt
  33. git submodule init
  34. git config submodule.reshade.url ../reshade
  35. git config submodule.reshade.gl3w.url ../gl3w
  36. git config submodule.reshade.imgui.url ../imgui
  37. git config submodule.reshade.minhook.url ../minhook
  38. git config submodule.reshade.spirv.url ../SPIRV-Headers
  39. git config submodule.reshade.stb.url ../stb
  40. git config submodule.reshade.utfcpp.url ../utfcpp
  41. git config submodule.reshade.vulkan.url ../Vulkan-Headers
  42. git submodule update
  43. }
  44.  
  45. build() {
  46. cd ${srcdir}/vkBasalt
  47.  
  48. make
  49. }
  50.  
  51. package() {
  52. cd ${srcdir}/vkBasalt
  53.  
  54. install -Dm 755 build/libvkbasalt64.so "${pkgdir}/usr/lib/libvkbasalt.so"
  55. install -Dm 755 build/libvkbasalt32.so "${pkgdir}/usr/lib32/libvkbasalt.so"
  56. install -dm 755 "${pkgdir}/usr/share/vkBasalt/shader"
  57. install -Dm 644 build/shader/*.spv "${pkgdir}/usr/share/vkBasalt/shader"
  58. install -Dm 644 config/vkBasalt.conf "${pkgdir}/usr/share/vkBasalt/vkBasalt.conf.example"
  59. install -dm 755 "${pkgdir}/usr/share/vulkan/implicit_layer.d"
  60. sed 's+@lib+/usr/lib/libvkbasalt.so+g' config/vkBasalt64.json > "${pkgdir}/usr/share/vulkan/implicit_layer.d/vkBasalt64.json"
  61. sed 's+@lib+/usr/lib32/libvkbasalt.so+g' config/vkBasalt32.json > "${pkgdir}/usr/share/vulkan/implicit_layer.d/vkBasalt32.json"
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement