summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Lass2019-11-30 19:44:06 +0100
committerMichael Lass2019-12-01 19:18:26 +0100
commite5e3739e847646f629a61734a7a05581e9d766ab (patch)
treefdef54d7a909c6a356fffa4fc3cc8cca18a5626f
downloadaur-e5e3739e847646f629a61734a7a05581e9d766ab.tar.gz
Initial commit
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD43
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f3898c4cd80
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = llvm70
+ pkgdesc = LLVM compiler toolchain, version 7.0 (installed under /opt/llvm70)
+ pkgver = 7.0.1
+ pkgrel = 1
+ url = https://llvm.org/
+ arch = x86_64
+ license = custom:University of Illinois/NCSA Open Source License
+ makedepends = cmake
+ makedepends = ninja
+ makedepends = libffi
+ makedepends = libedit
+ makedepends = ncurses
+ makedepends = libxml2
+ makedepends = python-sphinx
+ depends = libedit
+ depends = libxml2
+ depends = python2
+ options = staticlibs
+ source = https://releases.llvm.org/7.0.1/llvm-7.0.1.src.tar.xz
+ sha256sums = a38dfc4db47102ec79dcc2aa61e93722c5f6f06f0a961073bd84b78fb949419b
+
+pkgname = llvm70
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9c1e12cab3a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Michael Lass <bevan@bi-co.net>
+
+pkgname=llvm70
+pkgdesc="LLVM compiler toolchain, version 7.0 (installed under /opt/llvm70)"
+pkgver=7.0.1
+pkgrel=1
+arch=('x86_64')
+url="https://llvm.org/"
+license=('custom:University of Illinois/NCSA Open Source License')
+depends=('libedit' 'libxml2' 'python2')
+makedepends=('cmake' 'ninja' 'libffi' 'libedit' 'ncurses' 'libxml2' 'python-sphinx')
+options=('staticlibs')
+source=(https://releases.llvm.org/$pkgver/llvm-$pkgver.src.tar.xz)
+sha256sums=('a38dfc4db47102ec79dcc2aa61e93722c5f6f06f0a961073bd84b78fb949419b')
+
+build() {
+ mkdir "$srcdir/llvm-$pkgver.src/build"
+ cd "$srcdir/llvm-$pkgver.src/build"
+ cmake .. -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/opt/llvm70 \
+ -DLLVM_HOST_TRIPLE=$CHOST \
+ -DLLVM_BUILD_LLVM_DYLIB=ON \
+ -DLLVM_LINK_LLVM_DYLIB=ON \
+ -DLLVM_INSTALL_UTILS=ON \
+ -DLLVM_ENABLE_RTTI=ON \
+ -DLLVM_ENABLE_FFI=ON \
+ -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
+ ninja
+}
+
+package() {
+ cd "$srcdir/llvm-$pkgver.src/build"
+ DESTDIR="$pkgdir" ninja install
+
+ install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}