aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dxvk/APKBUILD
blob: de27ff499e78b44eb2863bdfd92560dd09f2ac6d (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=dxvk
pkgver=1.3.3
pkgrel=0
pkgdesc="Vulkan-based compatibility layer for Direct3D 10/11"
options="!strip !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() {
	meson . $_outdir \
		--cross-file $_crossfile \
		--prefix $_prefix \
		--bindir "" --libdir "" \
		--buildtype release \
		--strip \
		-D enable_tests=false
	ninja -C $_outdir
}

package() {
	DESTDIR="$pkgdir" ninja -C $_outdir install
	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="f91bf59bdb3300d17fcb630ac723749d843aaf3a54ac09dc421ee5ac754db9be82f083975ccb2920f07d523488d7b52d4189395b9c96d8b437d02250dbabbbff  dxvk-1.3.3.tar.gz"