diff options
author | Síle Ekaterin Liszka <sheila@vulpine.house> | 2023-10-25 07:02:00 -0700 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-11-29 04:54:48 -0600 |
commit | 24ad4a751833815c030a3544b3620fd9d34b4637 (patch) | |
tree | 9ee084faeb1288523c7fb53e65f10d038f44f3ae /user/vulkan-headers/APKBUILD | |
parent | 04e55a5866305a6b3851b52aa05ad4728e5bf9ba (diff) | |
download | packages-24ad4a751833815c030a3544b3620fd9d34b4637.tar.gz packages-24ad4a751833815c030a3544b3620fd9d34b4637.tar.bz2 packages-24ad4a751833815c030a3544b3620fd9d34b4637.tar.xz packages-24ad4a751833815c030a3544b3620fd9d34b4637.zip |
user/vulkan-headers: new package
Diffstat (limited to 'user/vulkan-headers/APKBUILD')
-rw-r--r-- | user/vulkan-headers/APKBUILD | 41 |
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..90cb90654 --- /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.294 +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="a2a2ccd2fa64acebb2ed3d54b9954d3a465b30542b72cff71d321ba49c75f1396519b8510159140d48e4ebae94169a6dccf21a85586079a10b22c4affd0944b4 vulkan-headers-1.3.294.tar.gz" |