[arch-commits] Commit in lib32-llvm/trunk (PKGBUILD)
Laurent Carlier
lcarlier at archlinux.org
Tue Dec 9 18:24:53 UTC 2014
Date: Tuesday, December 9, 2014 @ 19:24:52
Author: lcarlier
Revision: 123685
upgpkg: lib32-llvm 3.5.0-2
provide lib32-clang package (FS#42865)
Modified:
lib32-llvm/trunk/PKGBUILD
----------+
PKGBUILD | 32 +++++++++++++++++++++++++++++---
1 file changed, 29 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-12-09 17:38:59 UTC (rev 123684)
+++ PKGBUILD 2014-12-09 18:24:52 UTC (rev 123685)
@@ -9,9 +9,9 @@
# Contributor: Roberto Alsina <ralsina at kde.org>
# Contributor: Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar>
-pkgname=('lib32-llvm' 'lib32-llvm-libs')
+pkgname=('lib32-llvm' 'lib32-llvm-libs' 'lib32-clang')
pkgver=3.5.0
-pkgrel=1
+pkgrel=2
arch=('x86_64')
url="http://llvm.org/"
license=('custom:University of Illinois/NCSA Open Source License')
@@ -18,10 +18,13 @@
makedepends=('lib32-libffi' 'lib32-zlib' 'python2' 'gcc-multilib')
options=('staticlibs')
source=(http://llvm.org/releases/$pkgver/llvm-$pkgver.src.tar.xz{,.sig}
+ http://llvm.org/releases/$pkgver/cfe-$pkgver.src.tar.xz{,.sig}
http://llvm.org/releases/$pkgver/compiler-rt-$pkgver.src.tar.xz{,.sig}
llvm-3.5.0-force-link-pass.o.patch)
sha256sums=('28e199f368ef0a4666708f31c7991ad3bcc3a578342b0306526dd35f07595c03'
'SKIP'
+ 'fc80992e004b06f6c7afb612de1cdaa9ac9d25811c55f94fcf7331d9b81cdb8b'
+ 'SKIP'
'a4b3e655832bf8d9a357ea2c771db347237460e131988cbb96cda40ff39a8136'
'SKIP'
'5702053503d49448598eda1b8dc8c263f0df9ad7486833273e3987b5dec25a19')
@@ -29,6 +32,7 @@
prepare() {
cd "$srcdir/llvm-$pkgver.src"
+ mv "$srcdir/cfe-$pkgver.src" tools/clang
mv "$srcdir/compiler-rt-$pkgver.src" projects/compiler-rt
# Fix installation directories, ./configure doesn't seem to set them right
@@ -109,7 +113,11 @@
mv "$pkgdir"/usr/include/llvm/Config/*config.h "$pkgdir/"
rm -rf "$pkgdir"/usr/{bin,include,share/{doc,man,llvm}}
-
+
+ # remove conflicting clang files
+ rm -r "$pkgdir"/usr/lib
+ rm "$pkgdir"/usr/lib32/libclang*
+
install -d "$pkgdir/usr/include/llvm/Config"
mv "$pkgdir/config.h" "$pkgdir/usr/include/llvm/Config/config-32.h"
mv "$pkgdir/llvm-config.h" "$pkgdir/usr/include/llvm/Config/llvm-config-32.h"
@@ -132,3 +140,21 @@
install -Dm644 llvm-$pkgver.src/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
+package_lib32-clang() {
+ pkgdesc="C language family frontend for LLVM"
+ url="http://clang.llvm.org/"
+ depends=("lib32-llvm=$pkgver-$pkgrel" 'clang' 'gcc-multilib')
+
+ cd "$srcdir/llvm-$pkgver.src/tools/clang"
+
+ make DESTDIR="$pkgdir" install
+
+ mv -v "$pkgdir"/usr/lib/* "$pkgdir"/usr/lib32/
+ rm -r "$pkgdir"/usr/{bin,include,lib,share}
+
+ # Fix permissions of static libs
+ chmod -x "$pkgdir"/usr/lib32/*.a
+
+ install -Dm644 LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
More information about the arch-commits
mailing list