# Contributor: Leo # Maintainer: pkgname=dxvk pkgver=1.9.1 pkgrel=0 pkgdesc="Vulkan-based compatibility layer for Direct3D 10/11" options="!check" url="https://github.com/doitsujin/dxvk" arch="x86_64 x86" license="Zlib" depends="bash wine" makedepends=" meson glslang-dev mingw-w64-gcc wine-dev vulkan-loader " source="$pkgname-$pkgver.tar.gz::https://github.com/doitsujin/dxvk/archive/v$pkgver.tar.gz" case "$CARCH" in x86_64) _outdir=build/x64 _crossfile=build-win64.txt _prefix=/usr/share/dxvk/x64 ;; x86) _outdir=build/x32 _crossfile=build-win32.txt _prefix=/usr/share/dxvk/x32 ;; esac build() { abuild-meson \ --cross-file=$_crossfile \ --prefix=$_prefix \ --bindir="" \ --libdir="" \ --datadir="" \ --includedir="" \ --infodir="" \ --libexecdir="" \ --localedir="" \ --mandir="" \ --sbindir="" \ -Denable_tests=false \ $_outdir meson compile ${JOBS:+-j ${JOBS}} -C $_outdir } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C $_outdir install -Dm644 setup_dxvk.sh "$pkgdir"/usr/share/dxvk/setup_dxvk.sh mkdir -p "$pkgdir"/usr/bin ln -s /usr/share/dxvk/setup_dxvk.sh "$pkgdir"/usr/bin/setup_dxvk chmod +x "$pkgdir"/usr/share/dxvk/setup_dxvk.sh } sha512sums=" 012c1b2b854585696f438e13bfd2334498419650bb9f0fb9decff690562f79701a42fe93738e2567802fc201916a9b33885c44ca7494d5e12ac877e770ab1e36 dxvk-1.9.1.tar.gz "