From bd93dc68c07bd6cb9f394d3dab147c8a63030f05 Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 16 May 2021 22:33:45 +0200 Subject: [PATCH] New package: SPIRV-LLVM-Translator-12.0.0 --- srcpkgs/SPIRV-LLVM-Translator-devel | 1 + srcpkgs/SPIRV-LLVM-Translator/template | 32 ++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 120000 srcpkgs/SPIRV-LLVM-Translator-devel create mode 100644 srcpkgs/SPIRV-LLVM-Translator/template diff --git a/srcpkgs/SPIRV-LLVM-Translator-devel b/srcpkgs/SPIRV-LLVM-Translator-devel new file mode 120000 index 00000000000..170ae65aeda --- /dev/null +++ b/srcpkgs/SPIRV-LLVM-Translator-devel @@ -0,0 +1 @@ +SPIRV-LLVM-Translator \ No newline at end of file diff --git a/srcpkgs/SPIRV-LLVM-Translator/template b/srcpkgs/SPIRV-LLVM-Translator/template new file mode 100644 index 00000000000..2504cabed36 --- /dev/null +++ b/srcpkgs/SPIRV-LLVM-Translator/template @@ -0,0 +1,32 @@ +# Template file for 'SPIRV-LLVM-Translator' +pkgname=SPIRV-LLVM-Translator +version=12.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" +hostmakedepends="clang clang-tools-extra llvm" +makedepends="llvm" +short_desc="API and commands for processing SPIR-V modules" +maintainer="Orphaned " +license="NCSA" +homepage="https://github.com/KhronosGroup/SPIRV-LLVM-Translator" +distfiles="https://github.com/KhronosGroup/${pkgname}/archive/refs/tags/v${version}.tar.gz" +checksum=6e4fad04203f25fcde4c308c53e9f59bd05a390978992db3212d4b63aff62108 +make_check=no + +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" + } +}