void-packages/srcpkgs/libclc/template

29 lines
904 B
Bash

# Template file for 'libclc'
pkgname=libclc
version=12.0.0
revision=1
build_style=cmake
configure_args="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release"
hostmakedepends="cmake clang llvm python3 libedit-devel libffi-devel
ncurses-devel zlib-devel SPIRV-LLVM-Translator"
short_desc="Open implementation of the OpenCL C programming language"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause, MIT"
homepage="https://libclc.llvm.org"
distfiles="https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/libclc-${version}.src.tar.xz"
checksum=6b777ee2cd57da1b122f76c208463f620eef508f4128210c6b1a96bfb75c74dc
replaces="libclc-git>=0"
do_configure() {
# We really do a native build.
# The outcome is just header files.
unset CC CXX LD CFLAGS CXXFLAGS LDFLAGS
mkdir -p build
cd build
cmake -GNinja ${configure_args} ..
}
post_install() {
vlicense LICENSE.TXT
}