[arch-commits] Commit in polly/repos (3 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Tue Jun 21 23:35:46 UTC 2022
Date: Tuesday, June 21, 2022 @ 23:35:46
Author: foutrelis
Revision: 449268
archrelease: copy trunk to staging-x86_64
Added:
polly/repos/staging-x86_64/
polly/repos/staging-x86_64/PKGBUILD
(from rev 449267, polly/trunk/PKGBUILD)
polly/repos/staging-x86_64/keys/
----------+
PKGBUILD | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 65 insertions(+)
Copied: polly/repos/staging-x86_64/PKGBUILD (from rev 449267, polly/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2022-06-21 23:35:46 UTC (rev 449268)
@@ -0,0 +1,65 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+
+pkgname=polly
+pkgver=14.0.5
+pkgrel=1
+pkgdesc="High-level loop and data-locality optimizer and optimization infrastructure for LLVM"
+arch=('x86_64')
+url="https://polly.llvm.org/"
+license=('custom:Apache 2.0 with LLVM Exception')
+depends=('gcc-libs')
+makedepends=('llvm' 'cmake' 'ninja' 'python-sphinx')
+_source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver
+source=($_source_base/polly-$pkgver.src.tar.xz{,.sig}
+ $_source_base/llvm-$pkgver.src.tar.xz{,.sig})
+sha256sums=('f97adf9281eb670d419b5f8dd6959aad9c65f728369269cee17494152a92f6d0'
+ 'SKIP'
+ '234c8ed02ed1338aa4f0ffa955e45eb13abe7ba0032569d6bc17ae9334257b02'
+ 'SKIP')
+validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans at chromium.org>
+validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar at redhat.com>
+
+prepare() {
+ cd polly-$pkgver.src
+ mkdir build
+}
+
+build() {
+ cd polly-$pkgver.src/build
+
+ CFLAGS+=' -ffat-lto-objects'
+ CXXFLAGS+=' -ffat-lto-objects'
+
+ local cmake_args=(
+ -G Ninja
+ -DCMAKE_BUILD_TYPE=Release
+ -DCMAKE_INSTALL_DOCDIR=share/doc
+ -DCMAKE_INSTALL_PREFIX=/usr
+ -DLLVM_BUILD_DOCS=ON
+ -DLLVM_BUILD_MAIN_SRC_DIR="$srcdir/llvm-$pkgver.src"
+ -DLLVM_BUILD_TESTS=ON
+ -DLLVM_ENABLE_SPHINX=ON
+ -DLLVM_EXTERNAL_LIT=/usr/bin/lit
+ -DLLVM_LINK_LLVM_DYLIB=ON
+ -DSPHINX_WARNINGS_AS_ERRORS=OFF
+ )
+ cmake .. "${cmake_args[@]}"
+ ninja
+}
+
+check() {
+ cd polly-$pkgver.src/build
+ ninja check-polly
+}
+
+package() {
+ cd polly-$pkgver.src/build
+
+ DESTDIR="$pkgdir" ninja install
+ install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ # Remove documentation sources
+ rm -r "$pkgdir"/usr/share/doc/polly/html/{_sources,.buildinfo}
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list