# Contributor Travis Tilley # Maintainer: Natanael Copa pkgname=compiler-rt pkgver=3.8.1 pkgrel=0 pkgdesc="LLVM compiler-rt runtime libraries" arch="all" url="http://llvm.org/" license="UOI-NCSA" makedepends="cmake llvm llvm-dev llvm-static python2" source="http://llvm.org/releases/$pkgver/$pkgname-$pkgver.src.tar.xz" builddir="$srcdir/$pkgname-$pkgver.src" build() { mkdir -p "$builddir"/build cd "$builddir"/build cmake .. \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCOMPILER_RT_BUILD_SANITIZERS=OFF \ || return 1 make || return 1 } package() { cd "$builddir"/build make DESTDIR="$pkgdir" install || return 1 cd "$pkgdir" mkdir -p usr/lib/clang case "$CARCH" in ppc64le) ;; *) mv usr/lib/linux usr/lib/clang/$pkgver;; esac } sha512sums="bed3da5f8594c4bf71af406419fbeaf7ed5d8bf46adb305233a298271d34a9af1072bcb47d474ac19bb862cc7c7bc9e1d89bc1567133553f29480030cad1cf75 compiler-rt-3.8.1.src.tar.xz"