1 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
6 pkgdesc="High-level loop and data-locality optimizer and optimization infrastructure for LLVM"
8 url="https://polly.llvm.org/"
9 license=('custom:Apache 2.0 with LLVM Exception')
11 makedepends=('llvm' 'cmake' 'ninja' 'python-sphinx')
12 _source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver
13 source=($_source_base/$pkgname-$pkgver.src.tar.xz{,.sig}
14 add-missing-loadPolly.patch
15 $_source_base/llvm-$pkgver.src.tar.xz{,.sig})
16 sha256sums=('cd93672c3be35146e199b1e221fb81a39403a0cdeabcad4a47ae878655eea872'
18 'be0866a1c7d2677f6ba7625413dcd5bd7e47e86097b5c19f2057b50e6ed57eb0'
19 '408d11708643ea826f519ff79761fcdfc12d641a2510229eec459e72f8163020'
21 validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans@chromium.org>
22 validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar@redhat.com>
25 cd "$srcdir/$pkgname-$pkgver.src"
28 patch -Np2 -i ../add-missing-loadPolly.patch
32 cd "$srcdir/$pkgname-$pkgver.src/build"
35 -DCMAKE_BUILD_TYPE=Release \
36 -DCMAKE_INSTALL_PREFIX=/usr \
37 -DLLVM_LINK_LLVM_DYLIB=ON \
38 -DLLVM_BUILD_TESTS=ON \
39 -DLLVM_BUILD_DOCS=ON \
40 -DLLVM_ENABLE_SPHINX=ON \
41 -DSPHINX_WARNINGS_AS_ERRORS=OFF \
42 -DLLVM_EXTERNAL_LIT=/usr/bin/lit \
43 -DLLVM_BUILD_MAIN_SRC_DIR="$srcdir/llvm-$pkgver.src"
48 cd "$srcdir/$pkgname-$pkgver.src/build"
53 cd "$srcdir/$pkgname-$pkgver.src/build"
55 DESTDIR="$pkgdir" ninja install
56 install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
58 # Remove documentation sources
59 rm -r "$pkgdir"/usr/share/doc/$pkgname/html/{_sources,.buildinfo}
62 # vim:set ts=2 sw=2 et: