summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLlewelyn Trahaearn2017-02-04 08:09:16 -0800
committerLlewelyn Trahaearn2017-02-04 08:09:16 -0800
commitbf0cbf8beffd67c189cb041f2c2ef5cea37147b7 (patch)
tree5a9b09165280307608ecf4dbd1820b0489fef4aa
downloadaur-bf0cbf8beffd67c189cb041f2c2ef5cea37147b7.tar.gz
Imported to AUR after package was dropped from [Community].
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD40
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2462ecdc396
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+# Generated by mksrcinfo v8
+# Sat Feb 4 16:07:07 UTC 2017
+pkgbase = libc++
+ pkgdesc = A new implementation of the C++ standard library, targeting C++11.
+ pkgver = 3.9.1
+ pkgrel = 1
+ url = http://libcxx.llvm.org
+ arch = i686
+ arch = x86_64
+ license = custom:University of Illinois/NCSA Open Source License
+ makedepends = clang
+ makedepends = subversion
+ makedepends = cmake
+ depends = glibc
+ depends = libc++abi
+ depends = gcc-libs
+ source = http://www.llvm.org/releases/3.9.1/libcxx-3.9.1.src.tar.xz
+ source = http://www.llvm.org/releases/3.9.1/libcxx-3.9.1.src.tar.xz.sig
+ sha512sums = a5976e4096624a7307b3e43f4a22ac2dc74572226e0f57af9f3ef537a14c3cff1601b7042aef9dc40a0ee53ca76b08d72eb9c253dcf34f115d3153c302db7070
+ sha512sums = SKIP
+
+pkgname = libc++
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3dea0ed8f84
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Llewelyn Trahaearn <woefulderelict [at] gmail [dot] com>
+# Contributor: Daniel Micay <danielmicay [at] gmail [dot] com>
+# Contributor: MThinkCpp <mtc [dot] maintainer [at] outlook [dot] com>
+
+pkgname=libc++
+pkgver=3.9.1
+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')
+# 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.xz"{,.sig})
+sha512sums=('a5976e4096624a7307b3e43f4a22ac2dc74572226e0f57af9f3ef537a14c3cff1601b7042aef9dc40a0ee53ca76b08d72eb9c253dcf34f115d3153c302db7070'
+ 'SKIP')
+validpgpkeys=(
+ # Bill Wendling <void@llvm.org>
+ 54E3BDE33185D9F69664D22455F5CD70BB5A0569
+ # Tom Stellard <tom@stellard.net>
+ 11E521D646982372EB577A1F8F0871F202119294
+ # Hans Wennborg <hans@chromium.org>
+ B6C8F98282B944E3B0D5C2530FC3042E345AD05D
+)
+
+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_CXX_ABI_INCLUDE_PATHS=/usr/include/cxxabi \
+ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr "$srcdir/libcxx-${pkgver}.src"
+ make
+}
+
+package() {
+ cd libcxx-${pkgver}.src/build
+ make DESTDIR="$pkgdir" install
+ install -Dm644 ${srcdir}/libcxx-${pkgver}.src/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}