# Maintainer: Felix Xing (Felixaszx) <felixaszx@outlook.com>

_realname=VulkanMemoryAllocator
pkgbase=mingw-w64-vulkan-memory-allocator
pkgname=("${MINGW_PACKAGE_PREFIX}-vulkan-memory-allocator")
pkgver=3.3.0
pkgrel=1
pkgdesc="Memory allocation library for Vulkan API (mingw-w64)"
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
url="https://gpuopen.com/vulkan-memory-allocator/"
license=('spdx:MIT')
source=("https://github.com/GPUOpen-LibrariesAndSDKs/${_realname}/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz")
sha256sums=('c4f6bbe6b5a45c2eb610ca9d231158e313086d5b1a40c9922cb42b597419b14e')

package() {
  install -Dm644 "${srcdir}"/${_realname}-${pkgver}/include/*.h -t "${pkgdir}${MINGW_PREFIX}"/include/vma/
  install -Dm644 "${srcdir}/${_realname}-${pkgver}/LICENSE.txt" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE"
}
