From a797c7c6b1e6fc91ad1f336652a4c57b968d9eb4 Mon Sep 17 00:00:00 2001 From: "Felix Xing (Felixaszx)" Date: Sat, 23 Nov 2024 00:12:32 -0500 Subject: [PATCH 1/3] add new vk-bootstrap package --- mingw-w64-vk-bootstrap/PKGBUILD | 46 +++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 mingw-w64-vk-bootstrap/PKGBUILD diff --git a/mingw-w64-vk-bootstrap/PKGBUILD b/mingw-w64-vk-bootstrap/PKGBUILD new file mode 100644 index 0000000000000..8ceb339cd51fc --- /dev/null +++ b/mingw-w64-vk-bootstrap/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Sergey Popov +# Contributor: Mario Emmenlauer + +_realname=vk-bootstrap +pkgbase="mingw-w64-${_realname}" +pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" +pkgver=1.3.296 +pkgrel=1 +pkgdesc="A utility library that jump starts initialization of Vulkan (mingw-w64)" +arch=('any') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +url="https://charles-lunarg.github.io/vk-bootstrap/" +msys2_repository_url="https://github.com/charles-lunarg/vk-bootstrap" +msys2_references=() +license=("spdx:MIT") +depends=("${MINGW_PACKAGE_PREFIX}-vulkan-headers") +makedepends=("${MINGW_PACKAGE_PREFIX}-cc" + "${MINGW_PACKAGE_PREFIX}-cmake" + "${MINGW_PACKAGE_PREFIX}-ninja") +optdepends=() +source=("https://codeload.github.com/charles-lunarg/${_realname}/tar.gz/refs/tags/v${pkgver}") +sha256sums=('fbff2746134459648a488588a71609d11e6e00f591ac4a3cc6683a131bf31a53') + +build() { + MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \ + cmake \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX="${MINGW_PREFIX}" \ + -DBUILD_SHARED_LIBS=ON \ + -DVK_BOOTSTRAP_TEST=OFF \ + -S "${_realname}-${pkgver}" \ + -B "build-${MSYSTEM}" + + cmake --build "build-${MSYSTEM}" + + # remove the src archive + rm "../v${pkgver}" +} + +package() { + cd "${srcdir}" + + DESTDIR="${pkgdir}" cmake --install "build-${MSYSTEM}" + install -Dm644 "${srcdir}/${_realname}-${pkgver}/LICENSE.txt" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE" +} From 2c8530fb410d60bd5c649d74f8127812f2be86c9 Mon Sep 17 00:00:00 2001 From: felixaszx <101950667+felixaszx@users.noreply.github.com> Date: Sat, 23 Nov 2024 00:17:00 -0500 Subject: [PATCH 2/3] Update PKGBUILD --- mingw-w64-vk-bootstrap/PKGBUILD | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mingw-w64-vk-bootstrap/PKGBUILD b/mingw-w64-vk-bootstrap/PKGBUILD index 8ceb339cd51fc..7b9b543dfb44d 100644 --- a/mingw-w64-vk-bootstrap/PKGBUILD +++ b/mingw-w64-vk-bootstrap/PKGBUILD @@ -1,5 +1,4 @@ -# Maintainer: Sergey Popov -# Contributor: Mario Emmenlauer +# Maintainer: Felix Xing (Felixaszx) _realname=vk-bootstrap pkgbase="mingw-w64-${_realname}" From 6c1c94fe180486a7333692ac9be715229e717bb3 Mon Sep 17 00:00:00 2001 From: "Felix Xing (Felixaszx)" Date: Mon, 9 Dec 2024 16:14:00 -0500 Subject: [PATCH 3/3] replace the workaround with proper solution --- mingw-w64-vk-bootstrap/PKGBUILD | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mingw-w64-vk-bootstrap/PKGBUILD b/mingw-w64-vk-bootstrap/PKGBUILD index 7b9b543dfb44d..4628b7d9c6623 100644 --- a/mingw-w64-vk-bootstrap/PKGBUILD +++ b/mingw-w64-vk-bootstrap/PKGBUILD @@ -17,7 +17,7 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cc" "${MINGW_PACKAGE_PREFIX}-cmake" "${MINGW_PACKAGE_PREFIX}-ninja") optdepends=() -source=("https://codeload.github.com/charles-lunarg/${_realname}/tar.gz/refs/tags/v${pkgver}") +source=("${_realname}"-${pkgver}.tar.gz"::https://codeload.github.com/charles-lunarg/${_realname}/tar.gz/refs/tags/v${pkgver}") sha256sums=('fbff2746134459648a488588a71609d11e6e00f591ac4a3cc6683a131bf31a53') build() { @@ -32,9 +32,6 @@ build() { -B "build-${MSYSTEM}" cmake --build "build-${MSYSTEM}" - - # remove the src archive - rm "../v${pkgver}" } package() {