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.

41 lines
1.4 KiB

6 years ago
6 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. md5sums=('SKIP'
  16. 'e44502b2fc7e2db2db0090f779531189')
  17. pkgver() {
  18. cd "$pkgname"
  19. git log -1 --format=%cd.%h --date=short|tr -d -
  20. }
  21. build() {
  22. "$pkgname"/package-release.sh $pkgver $PWD --no-package
  23. }
  24. package() {
  25. mkdir -p "$pkgdir/usr/share/dxvk"
  26. cp -rv dxvk-$pkgver/* "$pkgdir/usr/share/dxvk"
  27. if [ ! -f "$pkgdir"/usr/share/dxvk/x64/d3d11.dll ] ||\
  28. [ ! -f "$pkgdir"/usr/share/dxvk/x64/dxgi.dll ] ||\
  29. [ ! -f "$pkgdir"/usr/share/dxvk/x32/d3d11.dll ] ||\
  30. [ ! -f "$pkgdir"/usr/share/dxvk/x32/dxgi.dll ]; then
  31. echo "Missing files, build was unsuccessful"
  32. return 1
  33. fi
  34. mkdir -p "$pkgdir/usr/bin"
  35. ln -s "/usr/share/dxvk/x32/setup_dxvk.sh" "$pkgdir/usr/bin/setup_dxvk32"
  36. ln -s "/usr/share/dxvk/x64/setup_dxvk.sh" "$pkgdir/usr/bin/setup_dxvk64"
  37. }