blob: b0e1eaacfd001b21d11f6277dd4dcd9c97e84d10 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Maintainer: AdriĆ Cereto i MassaguĆ© <ssorgatem at gmail.com>
pkgbase=dxvk-git
pkgname=('dxvk-mingw-git')
pkgver=2.3.1.r120.gfe9c875f
pkgrel=1
pkgdesc="A Vulkan-based compatibility layer for Direct3D 9/10/11 which allows running 3D applications on Linux using Wine. Windows DLL version)"
arch=('x86_64')
url="https://github.com/doitsujin/dxvk"
license=('zlib/libpng')
depends=('vulkan-icd-loader' 'wine>=4.0rc1' 'lib32-vulkan-icd-loader')
provides=("dxvk" "d9vk" "dxvk=$pkgver")
makedepends=('ninja' 'meson>=0.43' 'glslang' 'mingw-w64-gcc' 'git' 'wine')
conflicts=('d9vk' "dxvk" )
options=(!strip !buildflags staticlibs)
source=(
"git+https://github.com/doitsujin/dxvk.git"
"git+https://github.com/Joshua-Ashton/mingw-directx-headers.git"
"git+https://github.com/KhronosGroup/Vulkan-Headers.git"
"git+https://github.com/KhronosGroup/SPIRV-Headers.git"
"setup_dxvk.sh"
)
sha256sums=("SKIP"
"SKIP"
"SKIP"
"SKIP"
"778ec44acc09ac9c718354c9a96776b60bd4156dacf584e5c29b2c9697c76684"
)
pkgver() {
cd dxvk
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g'
}
prepare() {
cd dxvk
git submodule init include/{native/directx,vulkan,spirv}
git config submodule.include/native/directx.url "$srcdir/mingw-directx-headers"
git config submodule.include/vulkan.url "$srcdir/Vulkan-Headers"
git config submodule.include/spirv.url "$srcdir/SPIRV-Headers"
git -c protocol.file.allow=always submodule update include/{native/directx,vulkan,spirv}
}
build() {
meson setup dxvk "build/x64" \
--cross-file dxvk/build-win64.txt \
--prefix "/usr/share/dxvk/x64" \
--bindir "" --libdir "" \
--buildtype "release" \
--strip
ninja -C "build/x64"
meson setup dxvk "build/x32" \
--cross-file dxvk/build-win32.txt \
--prefix "/usr/share/dxvk/x32" \
--bindir "" --libdir "" \
--buildtype "release" \
--strip
ninja -C "build/x32"
}
package_dxvk-mingw-git() {
arch=('x86_64')
conflicts=("dxvk-bin")
DESTDIR="$pkgdir" ninja -C "build/x32" install
DESTDIR="$pkgdir" ninja -C "build/x64" install
install -Dm 644 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"
}
|