* update spirv-llvm-translator to 17.0.0.r6+g70883514-2
This commit is contained in:
parent
ecdc075e8a
commit
92e6d9d89c
@ -5,11 +5,11 @@
|
||||
_srcname=SPIRV-LLVM-Translator
|
||||
pkgname=${_srcname,,}
|
||||
pkgver=17.0.0.r6+g70883514
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Tool and a library for bi-directional translation between SPIR-V and LLVM IR"
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
url="https://github.com/KhronosGroup/SPIRV-LLVM-Translator"
|
||||
license=(custom)
|
||||
license=(LicenseRef-custom)
|
||||
depends=(llvm-libs spirv-tools)
|
||||
makedepends=(git cmake llvm spirv-headers)
|
||||
checkdepends=(python python-setuptools clang)
|
||||
@ -25,6 +25,7 @@ pkgver() {
|
||||
|
||||
build() {
|
||||
cmake -B build -S ${_srcname} \
|
||||
-G 'Unix Makefiles' \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
@ -34,15 +35,15 @@ build() {
|
||||
-DLLVM_EXTERNAL_LIT=/usr/bin/lit \
|
||||
-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=/usr/include/spirv/ \
|
||||
-Wno-dev
|
||||
make -C build
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
check() {
|
||||
LD_LIBRARY_PATH="${srcdir}/build/lib/SPIRV" make -C build test
|
||||
LD_LIBRARY_PATH="${srcdir}/build/lib/SPIRV" ctest --test-dir build --output-on-failure
|
||||
}
|
||||
|
||||
package() {
|
||||
make -C build DESTDIR="${pkgdir}" install
|
||||
DESTDIR="${pkgdir}" cmake --install build
|
||||
install -Dm755 build/tools/llvm-spirv/llvm-spirv -t "${pkgdir}"/usr/bin
|
||||
install -Dm644 ${_srcname}/LICENSE.TXT -t "${pkgdir}"/usr/share/licenses/${pkgname}/
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user