pkgname=libclc pkgver=19.1.6 pkgrel=2 pkgdesc="Library requirements of the OpenCL C programming language" arch=('x86_64') url="https://libclc.llvm.org/" license=('MIT') makedepends=('clang' 'llvm' 'cmake' 'ninja' 'python' 'spirv-llvm-translator') source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-${pkgver}/${pkgname}-${pkgver}.src.tar.xz) sha256sums=(9fb7807c245b265cc1158105a52abaf8199a13834e2d2e94d742ce436a1e82d7) build() { cd $pkgname-$pkgver.src local cmake_args=( -B flarebird-build -G Ninja -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release -D LLVM_LIBDIR_SUFFIX=64 ) cmake ${cmake_args[@]} ninja -C flarebird-build } package() { cd $pkgname-$pkgver.src DESTDIR=${pkgdir} ninja -C flarebird-build install }