summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/vulkan-loader/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/user/vulkan-loader/APKBUILD b/user/vulkan-loader/APKBUILD
new file mode 100644
index 000000000..6ba3c9ee6
--- /dev/null
+++ b/user/vulkan-loader/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
+# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
+pkgname=vulkan-loader
+pkgver=1.3.294
+pkgrel=0
+pkgdesc="Client driver loader for Vulkan"
+url="https://www.vulkan.org/"
+arch="all"
+license="Apache-2.0 AND MIT"
+depends=""
+depends_dev="vulkan-headers"
+makedepends="$depends_dev cmake libx11-dev libxcb-dev libxrandr-dev
+ wayland-dev wayland-protocols"
+subpackages="$pkgname-dev"
+source="vulkan-loader-$pkgver.tar.gz::https://github.com/KhronosGroup/Vulkan-Loader/archive/refs/tags/v$pkgver.tar.gz"
+builddir="$srcdir/Vulkan-Loader-$pkgver"
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ ${CMAKE_CROSSOPTS} \
+ .
+ make
+}
+
+check() {
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="ab040f54bacb0694ba373c8d2d2cdf450c7b74467d8deb62fb3c47340156eb5c77e6122d6450cbe6db9e66100a6000ad677acfd45a391fdb4c157bd9c0736e07 vulkan-loader-1.3.294.tar.gz"