summaryrefslogtreecommitdiff
path: root/extra/llvm
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-04-14 00:01:25 +0000
committerroot <root@rshg054.dnsready.net>2012-04-14 00:01:25 +0000
commit0e10d859eadd7643a12b184cc0a7176ef0d4b56b (patch)
tree44301575507e3d46cb31e6b291e4cc02f7a1b373 /extra/llvm
parent7ff5465d0386f06bea97ef956397c305d6f7e07f (diff)
Sat Apr 14 00:01:25 UTC 2012
Diffstat (limited to 'extra/llvm')
-rw-r--r--extra/llvm/PKGBUILD7
1 files changed, 5 insertions, 2 deletions
diff --git a/extra/llvm/PKGBUILD b/extra/llvm/PKGBUILD
index 82cb21881..89ecadbd6 100644
--- a/extra/llvm/PKGBUILD
+++ b/extra/llvm/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 151494 2012-02-26 18:15:27Z foutrelis $
+# $Id: PKGBUILD 156067 2012-04-12 16:34:12Z foutrelis $
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
# Contributor: Sebastian Nowicki <sebnow@gmail.com>
@@ -104,8 +104,11 @@ package_llvm() {
# We move the clang directory out of the tree so it won't get installed and
# then we bring it back in for the clang package
mv tools/clang "$srcdir"
+
# Copy missing file into the expected location
- cp bindings/ocaml/llvm/META.llvm bindings/ocaml/llvm/Release/
+ [[ $(check_option strip) == y ]] && _build_type=Release || _build_type=Debug
+ cp bindings/ocaml/llvm/META.llvm bindings/ocaml/llvm/$_build_type/
+
# -j1 is due to race conditions during the installation of the OCaml bindings
make -j1 DESTDIR="$pkgdir" install
mv "$srcdir/clang" tools