33 lines
1.1 KiB
Bash
33 lines
1.1 KiB
Bash
# Template file for 'SPIRV-LLVM-Translator'
|
|
pkgname=SPIRV-LLVM-Translator
|
|
version=17.0.0
|
|
revision=1
|
|
build_style=cmake
|
|
make_build_args="llvm-spirv"
|
|
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"
|
|
hostmakedepends="clang llvm"
|
|
makedepends="clang-tools-extra llvm17-devel SPIRV-Headers"
|
|
short_desc="API and commands for processing SPIR-V modules"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
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=eba381e1dd99b4ff6c672a28f52755d1adf2d810a97b51e6074ad4fa67937fb2
|
|
|
|
post_install() {
|
|
vlicense LICENSE.TXT
|
|
vbin ${wrksrc}/${cmake_builddir}/tools/llvm-spirv/llvm-spirv
|
|
}
|
|
|
|
SPIRV-LLVM-Translator-devel_package() {
|
|
depends="SPIRV-LLVM-Translator-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|