Automate installation of DXVK, D9VK + Wine/Wine Staging & update GPU drivers + PlayonLinux wineprefixes (Debian/Ubuntu/Mint/Arch Linux/Manjaro)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.5 KiB

5 years ago
  1. # Maintainer: Adrià Cereto i Massagué <ssorgatem at gmail.com>
  2. pkgname=dxvk-git
  3. pkgver=20180814.e5eb155
  4. pkgrel=1
  5. pkgdesc="A Vulkan-based compatibility layer for Direct3D 11 which allows running 3D applications on Linux using Wine."
  6. arch=('x86_64')
  7. url="https://github.com/doitsujin/dxvk"
  8. license=('zlib/libpng')
  9. depends=('vulkan-icd-loader')
  10. makedepends=('ninja' 'meson>=0.43' 'glslang' 'mingw-w64-gcc' 'git')
  11. provides=("dxvk")
  12. conflicts=("dxvk-bin")
  13. options=(!strip !buildflags staticlibs)
  14. source=($pkgname::"git+https://github.com/doitsujin/dxvk.git"
  15. patch_nowine.patch)
  16. #patch_revert-attribute_divisor.patch)
  17. md5sums=('SKIP'
  18. 'e44502b2fc7e2db2db0090f779531189')
  19. pkgver() {
  20. cd "$pkgname"
  21. git log -1 --format=%cd.%h --date=short|tr -d -
  22. }
  23. prepare() {
  24. cd "$pkgname"
  25. patch -p1 < ../patch_nowine.patch
  26. #patch -p1 -R < ../patch_revert-attribute_divisor.patch
  27. }
  28. build() {
  29. "$pkgname"/package-release.sh $pkgver $PWD --no-package
  30. }
  31. package() {
  32. mkdir -p "$pkgdir/usr/share/dxvk"
  33. cp -rv dxvk-$pkgver/* "$pkgdir/usr/share/dxvk"
  34. if [ ! -f "$pkgdir"/usr/share/dxvk/x64/d3d11.dll ] ||\
  35. [ ! -f "$pkgdir"/usr/share/dxvk/x64/dxgi.dll ] ||\
  36. [ ! -f "$pkgdir"/usr/share/dxvk/x32/d3d11.dll ] ||\
  37. [ ! -f "$pkgdir"/usr/share/dxvk/x32/dxgi.dll ]; then
  38. echo "Missing files, build was unsuccessful"
  39. return 1
  40. fi
  41. mkdir -p "$pkgdir/usr/bin"
  42. ln -s "/usr/share/dxvk/x32/setup_dxvk.sh" "$pkgdir/usr/bin/setup_dxvk32"
  43. ln -s "/usr/share/dxvk/x64/setup_dxvk.sh" "$pkgdir/usr/bin/setup_dxvk64"
  44. }