summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 160ee1b34fbbd93192f73daf044a991d7c6b2255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: AdriƠ Cereto i MassaguƩ <ssorgatem at gmail.com>

pkgname=dxvk-git
pkgver=20180317.1af52ab
pkgrel=1
epoch=
pkgdesc="A Vulkan-based compatibility layer for Direct3D 11 which allows running 3D applications on Linux using Wine."
arch=('x86_64')
url="https://github.com/doitsujin/dxvk"
license=('zlib/libpng')
groups=()
depends=('vulkan-icd-loader' 'wine>=3.4')
makedepends=('ninja' 'meson' 'glslang' 'mingw-w64-gcc')
checkdepends=()
provides=("dxvk")
conflicts=("dxvk-bin")
replaces=()
backup=()
options=(!strip !buildflags staticlibs)
install=
changelog=
source=($pkgname::"git+https://github.com/doitsujin/dxvk.git")
noextract=()
md5sums=("SKIP")
validpgpkeys=()


pkgver() {
        cd "$pkgname"
        git log -1 --format=%cd.%h --date=short|tr -d -
}


build() {
	"$pkgname"/package-release.sh git $PWD
}



package() {
	mkdir -p "$pkgdir/usr/share/dxvk"
	tar -xf "$pkgname".tar.gz -C "$pkgdir/usr/share/dxvk" --strip-components=1
	if [ ! -f "$pkgdir"/usr/share/dxvk/x64/d3d11.dll ] ||\
	 [ ! -f "$pkgdir"/usr/share/dxvk/x64/dxgi.dll ] ||\
	 [ ! -f "$pkgdir"/usr/share/dxvk/x32/d3d11.dll ] ||\
	 [ ! -f "$pkgdir"/usr/share/dxvk/x32/dxgi.dll ]; then
		echo "Missing files, build was unsuccessful"
		return 1
	fi
        mkdir -p "$pkgdir/usr/bin"
        ln -s "/usr/share/dxvk/x32/setup_dxvk.sh" "$pkgdir/usr/bin/setup_dxvk32"
        ln -s "/usr/share/dxvk/x64/setup_dxvk.sh" "$pkgdir/usr/bin/setup_dxvk64"
}