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.

43 lines
1.2 KiB

  1. # Maintainer: Adrià Cereto i Massagué <ssorgatem at gmail.com>
  2. # Contributor: Pekka Helenius <fincer89 at hotmail dot com>
  3. pkgname=dxvk-git
  4. _pkgname=dxvk
  5. pkgver=0.91.21
  6. pkgrel=1
  7. arch=('i686' 'x86_64')
  8. conflicts=("dxvk-win64-bin")
  9. provides=("dxvk" "dxvk64")
  10. depends=('vulkan-icd-loader' 'wine' 'winetricks')
  11. conflicts=("dxvk-git<$pkgver")
  12. pkgdesc="A Vulkan-based compatibility layer for Direct3D 10/11 which allows running 3D applications on Linux using Wine."
  13. arch=('x86_64' 'i686')
  14. url="https://github.com/doitsujin/dxvk"
  15. license=('custom:zlib/libpng')
  16. makedepends=('ninja' 'meson>=0.43' 'glslang' 'mingw-w64-gcc' 'git' 'wine')
  17. options=(!strip !buildflags staticlibs)
  18. source=(${pkgname}::"git+https://github.com/doitsujin/dxvk.git")
  19. sha256sums=('SKIP')
  20. pkgver() {
  21. cd "${pkgname}"
  22. git describe --long | sed 's/\-[a-z].*//; s/\-/\./; s/[a-z]//g'
  23. }
  24. build() {
  25. "${srcdir}/${pkgname}"/package-release.sh ${pkgver} "${srcdir}"/build --no-package
  26. }
  27. package() {
  28. mkdir -p "${pkgdir}"/usr/{bin,share/dxvk}
  29. cp -r "${srcdir}"/build/${_pkgname}-${pkgver}/* "${pkgdir}/usr/share/dxvk/"
  30. echo -e "#!/bin/sh\nwinetricks --force /usr/share/dxvk/setup_dxvk.verb" \
  31. > "${pkgdir}/usr/bin/setup_dxvk"
  32. chmod +x "${pkgdir}/usr/bin/setup_dxvk"
  33. }