blob: 0f6e4013750574e81f45a2abbc488013beb19159 (
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
|
# Maintainer: AdriĆ Cereto i MassaguĆ© <ssorgatem at gmail.com>
pkgname=dxvk-git
_srcname=dxvk
pkgver=20180214.0c2058e
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-staging')
makedepends=('ninja' 'meson' 'glslang' 'mingw-w64-gcc')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=(!strip !buildflags staticlibs)
install=
changelog=
source=("git+https://github.com/doitsujin/dxvk.git")
noextract=()
md5sums=("SKIP")
validpgpkeys=()
pkgver() {
cd "$_srcname"
git log -1 --format=%cd.%h --date=short|tr -d -
}
build() {
cd "$_srcname"
rm -r build.w64
meson --cross-file build-win64.txt build.w64
cd build.w64
meson configure -Dprefix=/opt/dxvk.w64 -Dbuildtype=release
ninja
cd ..
rm -r build.w32
meson --cross-file build-win32.txt build.w32
cd build.w32
meson configure -Dprefix=/opt/dxvk.w32 -Dbuildtype=release
ninja
}
package() {
cd "$_srcname"/build.w64
DESTDIR="$pkgdir/" ninja install
mkdir -p "$pkgdir/usr/local/bin"
ln -s "/opt/dxvk.w64/bin/setup_dxvk.sh" "$pkgdir/usr/local/bin/setup_dxvk64"
cd ../build.w32
DESTDIR="$pkgdir/" ninja install
ln -s "/opt/dxvk.w32/bin/setup_dxvk.sh" "$pkgdir/usr/local/bin/setup_dxvk32"
}
|