# Template file for 'SPIRV-LLVM-Translator19' pkgname=SPIRV-LLVM-Translator19 version=19.1.1 revision=1 _llvm_ver=${version%%.*} build_style=cmake configure_args="-Wno-dev -DLLVM_LINK_LLVM_DYLIB=ON -DCMAKE_SKIP_RPATH=ON -DLLVM_SPIRV_INCLUDE_TESTS=OFF -DBUILD_SHARED_LIBS=ON -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=/usr -DCMAKE_PREFIX_PATH=${XBPS_CROSS_BASE}/usr/lib/llvm/${_llvm_ver} " hostmakedepends="clang${_llvm_ver} llvm${_llvm_ver} pkg-config" makedepends="llvm${_llvm_ver}-devel SPIRV-Headers SPIRV-Tools-devel" short_desc="API and commands for processing SPIR-V modules - LLVM ${_llvm_ver}" maintainer="Daniel Martinez " license="NCSA" homepage="https://github.com/KhronosGroup/SPIRV-LLVM-Translator" distfiles="https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/v${version}.tar.gz" checksum=7f6f7a1af0eb40910ddf3a7647d2186c8c5dc5a47945afa935aeec56bacf4336 alternatives="llvm-spirv:llvm-spirv:/usr/bin/llvm-spirv-${_llvm_ver}" post_install() { mv ${DESTDIR}/usr/bin/llvm-spirv ${DESTDIR}/usr/bin/llvm-spirv-${_llvm_ver} vlicense LICENSE.TXT } SPIRV-LLVM-Translator19-devel_package() { depends="SPIRV-LLVM-Translator${_llvm_ver}-${version}_${revision}" conflicts="SPIRV-LLVM-Translator-devel>=0" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig vmove "usr/lib/*.so" } }