diff options
author | Síle Ekaterin Liszka <sheila@vulpine.house> | 2023-10-25 07:24:49 -0700 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-11-29 04:54:49 -0600 |
commit | 2c1a9edda7de2876af086b1b5acdfa0ee78d30e4 (patch) | |
tree | 8b6315a0d42ba325e60f55119e6c1cb517accc2d /user/vulkan-loader | |
parent | 24ad4a751833815c030a3544b3620fd9d34b4637 (diff) | |
download | packages-2c1a9edda7de2876af086b1b5acdfa0ee78d30e4.tar.gz packages-2c1a9edda7de2876af086b1b5acdfa0ee78d30e4.tar.bz2 packages-2c1a9edda7de2876af086b1b5acdfa0ee78d30e4.tar.xz packages-2c1a9edda7de2876af086b1b5acdfa0ee78d30e4.zip |
user/vulkan-loader: new package
Diffstat (limited to 'user/vulkan-loader')
-rw-r--r-- | user/vulkan-loader/APKBUILD | 42 |
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" |