summaryrefslogtreecommitdiff
path: root/community/libc++/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-14 01:49:21 -0700
committerroot <root@rshg054.dnsready.net>2013-07-14 01:49:21 -0700
commitd525d9a731f5d79c1128a192b9d2977a2967570f (patch)
tree2a17d6445748cb26dd944abe54a2c52a96162b00 /community/libc++/PKGBUILD
parentc9952f3a144d9fb19917d7c100dca30d2d99f629 (diff)
Sun Jul 14 01:49:07 PDT 2013
Diffstat (limited to 'community/libc++/PKGBUILD')
-rw-r--r--community/libc++/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/community/libc++/PKGBUILD b/community/libc++/PKGBUILD
new file mode 100644
index 000000000..51e254233
--- /dev/null
+++ b/community/libc++/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Daniel Micay <danielmicay@gmail.com>
+# Contributor: MThinkCpp <mtc.maintainer[at]outlook.com>
+pkgname='libc++'
+pkgver=3.3
+pkgrel=1
+pkgdesc='A new implementation of the C++ standard library, targeting C++11.'
+url='http://libcxx.llvm.org'
+license=('custom:University of Illinois/NCSA Open Source License')
+arch=('i686' 'x86_64')
+depends=('glibc' 'gcc-libs') # gcc-libs for libsupc++ binary
+makedepends=('clang' 'subversion' 'cmake' 'gcc') # gcc provides libsupc++ headers
+source=("http://www.llvm.org/releases/${pkgver}/libcxx-${pkgver}.src.tar.gz")
+md5sums=('SKIP')
+
+build() {
+ _gcc_include_dir=/usr/include/c++/$(gcc -dumpversion)
+ _gcc_platform_include_dir=$_gcc_include_dir/$(gcc -dumpmachine)
+ mkdir -p libcxx-${pkgver}.src/build
+ cd libcxx-${pkgver}.src/build
+ cmake -G "Unix Makefiles" -DLIBCXX_CXX_ABI=libsupc++ \
+ -DLIBCXX_LIBSUPCXX_INCLUDE_PATHS="${_gcc_include_dir};${_gcc_platform_include_dir}" \
+ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr "${srcdir}/libcxx-${pkgver}.src"
+ make
+}
+package() {
+ install -Dm644 libcxx-${pkgver}.src/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/license.txt"
+ cd libcxx-${pkgver}.src/build
+ make DESTDIR="$pkgdir" install
+}