pkgname=spirv-llvm-translator pkgver=19.1.3 pkgrel=1 pkgdesc="Tool and a library for bi-directional translation between SPIR-V and LLVM IR" arch=('x86_64') url="https://github.com/KhronosGroup/SPIRV-LLVM-Translator" license=('LicenseRef-custom') depends=('llvm-libs' 'spirv-tools' 'libxml2') makedepends=('cmake' 'llvm') source=(https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/v${pkgver}/SPIRV-LLVM-Translator-${pkgver}.tar.gz) sha256sums=(cf702ec5a1c8e1ac3bfc999c1207e753fe8f972cb7d9608110b2f54ac4f0572c) build() { cd SPIRV-LLVM-Translator-${pkgver} local cmake_args=( -B flarebird-build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib64 -DBUILD_SHARED_LIBS=ON -DCMAKE_SKIP_INSTALL_RPATH=ON -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=/usr ) cmake ${cmake_args[@]} cmake --build flarebird-build } package() { cd SPIRV-LLVM-Translator-${pkgver} DESTDIR=${pkgdir} cmake --install flarebird-build }