# Maintainer: Jack L. Frost <fbt@fleshless.org>
pkgname='dxvk-bin'
pkgver=1.4.3
pkgrel=1
pkgdesc='Vulkan-based D3D11 and D3D10 implementation for Linux / Wine'
arch=( 'x86_64' )
url='https://github.com/doitsujin/dxvk'
license=( 'custom' )
depends=( 'vulkan-icd-loader' 'lib32-vulkan-icd-loader' 'wine' )
source=( "https://github.com/doitsujin/dxvk/releases/download/v${pkgver}/dxvk-${pkgver}.tar.gz"
         "https://raw.githubusercontent.com/doitsujin/dxvk/master/LICENSE"	)

package() {
	mkdir -pm755 "$pkgdir/usr/share/dxvk"
	tar -xf "dxvk-$pkgver.tar.gz" -C "$pkgdir/usr/share/dxvk" --strip-components=1

	mkdir -pm755 "$pkgdir/usr/bin"
	ln -s /usr/share/dxvk/setup_dxvk.sh "$pkgdir/usr/bin/setup_dxvk"
}

sha1sums=('4d065fda6bd164996c8e73eb63f2d57c12cb66bb'
          '4a83b2fbabc7965ffeffdda9b49248867c18e621')
