summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom2019-10-08 23:27:06 +0100
committerEric Engestrom2019-10-08 23:27:38 +0100
commit78eaccd2ad3294a878c31be805cbf8a65c730b3a (patch)
treeb67f8b36b34b0f858a23cb3b001368875d420f64
parent841b2d12027b504141af081ebf749257071f4fc6 (diff)
downloadaur-78eaccd2ad3294a878c31be805cbf8a65c730b3a.tar.gz
hack: get things building again after the upstream submodule move
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD11
2 files changed, 12 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f0c7dcebaa1..81fae8579d4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,6 +6,7 @@ pkgbase = vulkan-caps-viewer
arch = x86_64
license = GPL2
makedepends = qt5-base
+ makedepends = git
depends = vulkan-icd-loader
depends = qt5-base
depends = qt5-x11extras
diff --git a/PKGBUILD b/PKGBUILD
index 2fcf195ce9f..2b02920a59c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,6 +12,9 @@ sha1sums=('bd4edf5510968bd5c9c2bce0deb4c048b7ddf966')
makedepends=(qt5-base)
depends=(vulkan-icd-loader qt5-base qt5-x11extras)
+#HACK: github doesn't package submodules, so we need to manually fetch the vulkan headers
+makedepends+=(git)
+
prepare() {
if [ -d build ]
then
@@ -20,6 +23,14 @@ prepare() {
return
fi
+ #HACK: github doesn't package submodules...
+ git clone --depth 1 https://github.com/KhronosGroup/Vulkan-Headers \
+ VulkanCapsViewer-$pkgver/Vulkan-Headers
+
+ #HACK: the last commit of 2.02 explicitely breaks the build; probably wasn't intended to be pushed out
+ sed 's#"/Vulkan-Headers/include"#"./Vulkan-Headers/include"#' \
+ -i VulkanCapsViewer-$pkgver/vulkanCapsViewer.pro
+
mkdir build
cd build
export PREFIX="$pkgdir"