diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/libc++ | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/libc++')
-rw-r--r-- | community/libc++/PKGBUILD | 29 | ||||
-rw-r--r-- | community/libc++/libc++.install | 7 |
2 files changed, 36 insertions, 0 deletions
diff --git a/community/libc++/PKGBUILD b/community/libc++/PKGBUILD new file mode 100644 index 000000000..6a4f8c0df --- /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=3 +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') +# gcc-libs needed for libgcc_s, because Arch doesn't use a pure compiler-rt clang +depends=('glibc' 'libc++abi' 'gcc-libs') +makedepends=('clang' 'subversion' 'cmake') +source=("http://www.llvm.org/releases/${pkgver}/libcxx-${pkgver}.src.tar.gz") +md5sums=('59006e659ffb33f5222a7b79d4cd071e') +install=${pkgname}.install + +build() { + mkdir -p libcxx-${pkgver}.src/build + cd libcxx-${pkgver}.src/build + CC=clang CXX=clang++ cmake -G "Unix Makefiles" -DLIBCXX_CXX_ABI=libcxxabi \ + -DLIBCXX_LIBCXXABI_INCLUDE_PATHS=/usr/include \ + -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 +} diff --git a/community/libc++/libc++.install b/community/libc++/libc++.install new file mode 100644 index 000000000..caef683ae --- /dev/null +++ b/community/libc++/libc++.install @@ -0,0 +1,7 @@ +post_install() { + echo compile with \`clang++ -std=c++11 -stdlib=libc++ -lc++abi\` to use libc++ +} + +post_upgrade() { + post_install +} |