pkgname=compiler-rt pkgver=19.1.6 pkgrel=1 pkgdesc="Compiler runtime libraries for clang" arch=('x86_64') url="https://compiler-rt.llvm.org/" license=('Apache-2.0 WITH LLVM-exception') depends=('gcc-libs') makedepends=('llvm' 'cmake' 'ninja' 'python') makedepends_x86_64=('gcc-libs-32bit') options=('!staticlibs') source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-${pkgver}/${pkgname}-${pkgver}.src.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-${pkgver}/cmake-${pkgver}.src.tar.xz) sha256sums=(0d4f312e1419152282c267e6b6a1fa5914a7a0c753a5e926bee1c8c28e614ae4 9c7ec82d9a240dc2287b8de89d6881bb64ceea0dcd6ce133c34ef65bda22d99e) prepare() { mv cmake{-$pkgver.src,} } build() { cd ${pkgname}-${pkgver}.src local cmake_args=( -B flarebird-build -G Ninja -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr -D LLVM_LIBDIR_SUFFIX=64 -D CMAKE_SKIP_RPATH=ON -D COMPILER_RT_INSTALL_PATH=/usr/lib64/clang/${pkgver%%.*} ) cmake ${cmake_args[@]} ninja -C flarebird-build } package() { cd ${pkgname}-${pkgver}.src DESTDIR=${pkgdir} ninja -C flarebird-build install }