blob: 7c8a43f18b4c544fbd70497402f940122b1bfc57 (
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:
pkgname=dxvk
pkgver=1.5.5
pkgrel=1
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() {
meson . $_outdir \
--cross-file=$_crossfile \
--prefix=$_prefix \
--bindir="" \
--libdir="" \
--buildtype=plain \
-Denable_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="b0a71dc6383aadfe55d30d73c3aefa63785882056d53d484e6d81b4bd85d40a1cf1840b61ecb03e21a3e8ed4e9a2c2d3d8ccbbadb956752f0356fe7e1a59ab10 dxvk-1.5.5.tar.gz"
|