summaryrefslogtreecommitdiff
path: root/user/vulkan-headers/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/vulkan-headers/APKBUILD')
-rw-r--r--user/vulkan-headers/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/user/vulkan-headers/APKBUILD b/user/vulkan-headers/APKBUILD
new file mode 100644
index 000000000..b040da14f
--- /dev/null
+++ b/user/vulkan-headers/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
+# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
+pkgname=vulkan-headers
+pkgver=1.3.269
+pkgrel=0
+pkgdesc="Development files for Vulkan"
+url="https://www.vulkan.org/"
+arch="noarch"
+options="!check !dev" # no testsuite, headers-only project
+license="Apache-2.0 AND MIT"
+depends=""
+makedepends="cmake"
+subpackages=""
+source="vulkan-headers-$pkgver.tar.gz::https://github.com/KhronosGroup/Vulkan-Headers/archive/refs/tags/v$pkgver.tar.gz"
+builddir="$srcdir/Vulkan-Headers-$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="74c99232bb5f23656621cf4c138fdb9e081d723b80d361674e00cd8e707d658daf24fec751d00927a1e1c4d3d5bd334a43da79cb038abb673af3ee76bb2750fb vulkan-headers-1.3.269.tar.gz"