summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGoliathLabs2020-06-01 14:05:37 +0200
committerGoliathLabs2020-06-01 14:05:37 +0200
commit6194977786a346db2ab65c6de5f859a5de113863 (patch)
tree95c6f78f014ebcc0f13d37147faaf7a43599695b
parent98c90ef6eb999522376f3d3f05c39be73c46b81d (diff)
downloadaur-6194977786a346db2ab65c6de5f859a5de113863.tar.gz
Updated: PKGBUILD
-rw-r--r--.SRCINFO58
-rw-r--r--PKGBUILD51
2 files changed, 59 insertions, 50 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c26e47a5383..3db4b8f34d4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,30 +1,34 @@
pkgbase = llvm38
pkgver = 3.8.1
- pkgrel = 5
- url = http://llvm.org/
+ pkgrel = 6
+ url = https://llvm.org/
arch = i686
arch = x86_64
license = custom:University of Illinois/NCSA Open Source License
makedepends = cmake
+ makedepends = ninja
makedepends = libffi
- makedepends = python2
- makedepends = ocaml
- makedepends = python-sphinx
+ makedepends = libedit
+ makedepends = ncurses
+ makedepends = libxml2
+ makedepends = ocaml=4.10.0
makedepends = ocaml-ctypes
makedepends = ocaml-findlib
- makedepends = libedit
+ makedepends = python2
+ makedepends = python-sphinx
+ makedepends = python-recommonmark
makedepends = swig
options = staticlibs
- source = http://releases.llvm.org/3.8.1/llvm-3.8.1.src.tar.xz
- source = http://releases.llvm.org/3.8.1/llvm-3.8.1.src.tar.xz.sig
- source = http://releases.llvm.org/3.8.1/cfe-3.8.1.src.tar.xz
- source = http://releases.llvm.org/3.8.1/cfe-3.8.1.src.tar.xz.sig
- source = http://releases.llvm.org/3.8.1/clang-tools-extra-3.8.1.src.tar.xz
- source = http://releases.llvm.org/3.8.1/clang-tools-extra-3.8.1.src.tar.xz.sig
- source = http://releases.llvm.org/3.8.1/compiler-rt-3.8.1.src.tar.xz
- source = http://releases.llvm.org/3.8.1/compiler-rt-3.8.1.src.tar.xz.sig
- source = http://releases.llvm.org/3.8.1/lldb-3.8.1.src.tar.xz
- source = http://releases.llvm.org/3.8.1/lldb-3.8.1.src.tar.xz.sig
+ source = https://releases.llvm.org/3.8.1/llvm-3.8.1.src.tar.xz
+ source = https://releases.llvm.org/3.8.1/llvm-3.8.1.src.tar.xz.sig
+ source = https://releases.llvm.org/3.8.1/cfe-3.8.1.src.tar.xz
+ source = https://releases.llvm.org/3.8.1/cfe-3.8.1.src.tar.xz.sig
+ source = https://releases.llvm.org/3.8.1/clang-tools-extra-3.8.1.src.tar.xz
+ source = https://releases.llvm.org/3.8.1/clang-tools-extra-3.8.1.src.tar.xz.sig
+ source = https://releases.llvm.org/3.8.1/compiler-rt-3.8.1.src.tar.xz
+ source = https://releases.llvm.org/3.8.1/compiler-rt-3.8.1.src.tar.xz.sig
+ source = https://releases.llvm.org/3.8.1/lldb-3.8.1.src.tar.xz
+ source = https://releases.llvm.org/3.8.1/lldb-3.8.1.src.tar.xz.sig
source = D17567-PR23529-Sema-part-of-attrbute-abi_tag-support.patch
source = D18035-PR23529-Mangler-part-of-attrbute-abi_tag-support.patch
source = D35246-Fix-sanitizer-build-against-latest-glibc.patch
@@ -35,6 +39,8 @@ pkgbase = llvm38
source = llvm-Config-llvm-config.h
validpgpkeys = B6C8F98282B944E3B0D5C2530FC3042E345AD05D
validpgpkeys = 11E521D646982372EB577A1F8F0871F202119294
+ validpgpkeys = B6C8F98282B944E3B0D5C2530FC3042E345AD05D
+ validpgpkeys = 474E22316ABF4785A88C6E8EA2C794A986419D8A
sha256sums = 6e82ce4adb54ff3afc18053d6981b6aed1406751b8742582ed50f04b5ab475f9
sha256sums = SKIP
sha256sums = 4cd3836dfb4b88b597e075341cae86d61c63ce3963e45c7fe6a8bf59bb382cdf
@@ -57,9 +63,9 @@ pkgbase = llvm38
pkgname = llvm38
pkgdesc = Low Level Virtual Machine
- depends = llvm-libs38=3.8.1-5
+ depends = llvm-libs38=3.8.1-6
depends = perl
- provides = llvm=3.8.1-5
+ provides = llvm=3.8.1-6
conflicts = llvm
replaces = llvm
@@ -70,16 +76,16 @@ pkgname = llvm-libs38
depends = libffi
depends = libedit
depends = ncurses
- provides = llvm-libs=3.8.1-5
+ provides = llvm-libs=3.8.1-6
conflicts = llvm-libs
replaces = llvm-libs
pkgname = llvm-ocaml38
pkgdesc = OCaml bindings for LLVM
- depends = llvm38=3.8.1-5
+ depends = llvm38=3.8.1-6
depends = ocaml
depends = ocaml-ctypes
- provides = llvm-ocaml=3.8.1-5
+ provides = llvm-ocaml=3.8.1-6
conflicts = llvm-ocaml
replaces = llvm-ocaml
@@ -90,19 +96,19 @@ pkgname = lldb38
depends = libxml2
depends = python2
depends = python2-six
- provides = lldb=3.8.1-5
+ provides = lldb=3.8.1-6
conflicts = lldb
replaces = lldb
pkgname = clang38
pkgdesc = C language family frontend for LLVM
url = http://clang.llvm.org/
- depends = llvm-libs38=3.8.1-5
+ depends = llvm-libs38=3.8.1-6
depends = gcc
depends = libxml2
optdepends = openmp: OpenMP support in clang with -fopenmp
optdepends = python2: for scan-view and git-clang-format
- provides = clang=3.8.1-5
+ provides = clang=3.8.1-6
provides = clang-analyzer=3.8.1
conflicts = clang
conflicts = clang-analyzer
@@ -112,8 +118,8 @@ pkgname = clang38
pkgname = clang-tools-extra38
pkgdesc = Extra tools built using clang's tooling APIs
url = http://clang.llvm.org/
- depends = clang38=3.8.1-5
- provides = clang-tools-extra=3.8.1-5
+ depends = clang38=3.8.1-6
+ provides = clang-tools-extra=3.8.1-6
conflicts = clang-tools-extra
replaces = clang-tools-extra
diff --git a/PKGBUILD b/PKGBUILD
index e3874afc8f7..fc476ebb11c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,6 @@
# $Id$
-# Maintainer: Riad Wahby <kwantam+aur at gmail dot com>
+# Maintainer: Felix Golatofski <contact@xdfr.de>
+# Contributor: Riad Wahby <kwantam+aur at gmail dot com>
# Contributor: Felix Schindler <aut at felixschindler dot net>
# Contributor: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
@@ -13,21 +14,22 @@
pkgname=('llvm38' 'llvm-libs38' 'llvm-ocaml38' 'lldb38' 'clang38' 'clang-tools-extra38')
pkgver=3.8.1
-pkgrel=5
-#_ocaml_ver=4.06.0-2
+pkgrel=6
+_ocaml_ver=4.10.0
arch=('i686' 'x86_64')
-url="http://llvm.org/"
+url="https://llvm.org/"
license=('custom:University of Illinois/NCSA Open Source License')
-makedepends=('cmake' 'libffi' 'python2' "ocaml" 'python-sphinx'
- 'ocaml-ctypes' 'ocaml-findlib' 'libedit' 'swig')
+makedepends=('cmake' 'ninja' 'libffi' 'libedit' 'ncurses' 'libxml2'
+ "ocaml=$_ocaml_ver" 'ocaml-ctypes' 'ocaml-findlib' 'python2'
+ 'python-sphinx' 'python-recommonmark' 'swig')
# Use gcc-multilib to build 32-bit compiler-rt libraries on x86_64 (FS#41911)
makedepends_x86_64=('gcc-multilib')
options=('staticlibs')
-source=(http://releases.llvm.org/$pkgver/llvm-$pkgver.src.tar.xz{,.sig}
- http://releases.llvm.org/$pkgver/cfe-$pkgver.src.tar.xz{,.sig}
- http://releases.llvm.org/$pkgver/clang-tools-extra-$pkgver.src.tar.xz{,.sig}
- http://releases.llvm.org/$pkgver/compiler-rt-$pkgver.src.tar.xz{,.sig}
- http://releases.llvm.org/$pkgver/lldb-$pkgver.src.tar.xz{,.sig}
+source=(https://releases.llvm.org/$pkgver/llvm-$pkgver.src.tar.xz{,.sig}
+ https://releases.llvm.org/$pkgver/cfe-$pkgver.src.tar.xz{,.sig}
+ https://releases.llvm.org/$pkgver/clang-tools-extra-$pkgver.src.tar.xz{,.sig}
+ https://releases.llvm.org/$pkgver/compiler-rt-$pkgver.src.tar.xz{,.sig}
+ https://releases.llvm.org/$pkgver/lldb-$pkgver.src.tar.xz{,.sig}
D17567-PR23529-Sema-part-of-attrbute-abi_tag-support.patch
D18035-PR23529-Mangler-part-of-attrbute-abi_tag-support.patch
D35246-Fix-sanitizer-build-against-latest-glibc.patch
@@ -54,8 +56,10 @@ sha256sums=('6e82ce4adb54ff3afc18053d6981b6aed1406751b8742582ed50f04b5ab475f9'
'cd48bb5498c25fed2c237ab44e3700aa76ae9d8040bffa0e17dfebf2f4243bc1'
'039a78549a5fcf6b42acba4d8f05c5593f3adeb38b151b607aa44ceb542562d8'
'597dc5968c695bbdbb0eac9e8eb5117fcd2773bc91edf5ec103ecffffab8bc48')
-validpgpkeys=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D'
- '11E521D646982372EB577A1F8F0871F202119294')
+validpgpkeys=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D')
+validpgpkeys+=('11E521D646982372EB577A1F8F0871F202119294')
+validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans@chromium.org>
+validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar@redhat.com>
prepare() {
cd "$srcdir/llvm-$pkgver.src"
@@ -87,26 +91,26 @@ prepare() {
build() {
cd "$srcdir/llvm-$pkgver.src/build"
+ export CFLAGS='-Wall -Wstrict-prototypes -Wno-unused-local-typedefs -Wno-sizeof-pointer-memaccess -Wno-maybe-uninitialized -Wno-stringop-truncation -Xlinker "--allow-multiple-definition"'
- cmake \
+ cmake .. -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
+ -DLLVM_HOST_TRIPLE=$CHOST \
-DLLVM_BUILD_LLVM_DYLIB=ON \
- -DLLVM_DYLIB_EXPORT_ALL=ON \
-DLLVM_LINK_LLVM_DYLIB=ON \
+ -DLLVM_INSTALL_UTILS=ON \
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_ENABLE_FFI=ON \
+ -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=AVR \
-DLLVM_BUILD_TESTS=ON \
-DLLVM_BUILD_DOCS=ON \
-DLLVM_ENABLE_SPHINX=ON \
-DLLVM_ENABLE_DOXYGEN=OFF \
-DSPHINX_WARNINGS_AS_ERRORS=OFF \
- -DFFI_INCLUDE_DIR=$(pkg-config --variable=includedir libffi) \
-DLLVM_BINUTILS_INCDIR=/usr/include \
- ..
-
- make
- make ocaml_doc
+ -DLLDB_USE_SYSTEM_SIX=1
+ ninja all ocaml_doc
# Disable automatic installation of components that go into subpackages
sed -i '/\(clang\|lldb\)\/cmake_install.cmake/d' tools/cmake_install.cmake
@@ -116,8 +120,7 @@ build() {
check() {
cd "$srcdir/llvm-$pkgver.src/build"
- make check
- make check-clang
+ ninja check
}
package_llvm38() {
@@ -130,7 +133,7 @@ package_llvm38() {
cd "$srcdir/llvm-$pkgver.src"
- make -C build DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" ninja install
# Remove documentation sources
rm -r "$pkgdir"/usr/share/doc/$_pkgname/html/{_sources,.buildinfo}
@@ -190,7 +193,7 @@ package_llvm-ocaml38() {
install -d "$pkgdir"/{usr/lib,usr/share/doc}
cp -a "$srcdir/ocaml.lib" "$pkgdir/usr/lib/ocaml"
- cp -a "$srcdir/ocaml.doc" "$pkgdir/usr/share/doc/$_pkgname"
+ cp -a "$srcdir/ocaml.doc" "$pkgdir/usr/share/doc/$_pkgname/html"
install -Dm644 LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}