upgpkg: ocaml-integers 0.5.0-1
[arch-packages.git] / polly / trunk / PKGBUILD
blob5ed835a34691dfdae66fccf6234886bae307d292
1 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
3 pkgname=polly
4 pkgver=13.0.0
5 pkgrel=1
6 pkgdesc="High-level loop and data-locality optimizer and optimization infrastructure for LLVM"
7 arch=('x86_64')
8 url="https://polly.llvm.org/"
9 license=('custom:Apache 2.0 with LLVM Exception')
10 depends=('gcc-libs')
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'
17             'SKIP'
18             'be0866a1c7d2677f6ba7625413dcd5bd7e47e86097b5c19f2057b50e6ed57eb0'
19             '408d11708643ea826f519ff79761fcdfc12d641a2510229eec459e72f8163020'
20             'SKIP')
21 validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans@chromium.org>
22 validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar@redhat.com>
24 prepare() {
25   cd "$srcdir/$pkgname-$pkgver.src"
26   mkdir build
28   patch -Np2 -i ../add-missing-loadPolly.patch
31 build() {
32   cd "$srcdir/$pkgname-$pkgver.src/build"
34   cmake .. -G Ninja \
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"
44   ninja
47 check() {
48   cd "$srcdir/$pkgname-$pkgver.src/build"
49   ninja check-polly
52 package() {
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: