aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-07-11 13:15:30 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-07-11 17:30:06 -0300
commitb883ce448342ad0820a0e04f58b1c64b8d21c20f (patch)
tree32ed12f4447cfba856f78c30e78ec43410687deb
parentea69b4d5fb5c96f4db73a42f38b9b3831656db95 (diff)
downloadaports-b883ce448342ad0820a0e04f58b1c64b8d21c20f.tar.bz2
aports-b883ce448342ad0820a0e04f58b1c64b8d21c20f.tar.xz
testing/dxvk: new aport
https://github.com/doitsujin/dxvk Vulkan-based compatibility layer for Direct3D 10/11
-rw-r--r--testing/dxvk/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/dxvk/APKBUILD b/testing/dxvk/APKBUILD
new file mode 100644
index 0000000000..1d27d3e64c
--- /dev/null
+++ b/testing/dxvk/APKBUILD
@@ -0,0 +1,52 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
+# Maintainer: Leo <thinkabit.ukim@gmail.com>
+pkgname=dxvk
+pkgver=1.2.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/$pkgname/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="bf53e38405fa8eb92e778f4dc49efbe2d559bbc58dd94f8414955fdeee47cc765d4332d7bfac43742c981a7e9524d295ee91accc7334069724d449a471d44a7f dxvk-1.2.3.tar.gz"