# Maintainer: AdriƠ Cereto i MassaguƩ # Contributor: Pekka Helenius pkgname=dxvk-git _pkgname=dxvk pkgver=0.91.21 pkgrel=1 arch=('i686' 'x86_64') conflicts=("dxvk-win64-bin") provides=("dxvk" "dxvk64") depends=('vulkan-icd-loader' 'wine' 'winetricks') conflicts=("dxvk-git<$pkgver") pkgdesc="A Vulkan-based compatibility layer for Direct3D 10/11 which allows running 3D applications on Linux using Wine." arch=('x86_64' 'i686') url="https://github.com/doitsujin/dxvk" license=('custom:zlib/libpng') makedepends=('ninja' 'meson>=0.43' 'glslang' 'mingw-w64-gcc' 'git' 'wine') options=(!strip !buildflags staticlibs) source=(${pkgname}::"git+https://github.com/doitsujin/dxvk.git") sha256sums=('SKIP') pkgver() { cd "${pkgname}" git describe --long | sed 's/\-[a-z].*//; s/\-/\./; s/[a-z]//g' } build() { "${srcdir}/${pkgname}"/package-release.sh ${pkgver} "${srcdir}"/build --no-package } package() { mkdir -p "${pkgdir}"/usr/{bin,share/dxvk} cp -r "${srcdir}"/build/${_pkgname}-${pkgver}/* "${pkgdir}/usr/share/dxvk/" echo -e "#!/bin/sh\nwinetricks --force /usr/share/dxvk/setup_dxvk.verb" \ > "${pkgdir}/usr/bin/setup_dxvk" chmod +x "${pkgdir}/usr/bin/setup_dxvk" }