summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLlewelyn Trahaearn2017-02-05 02:00:16 -0800
committerLlewelyn Trahaearn2017-02-05 02:00:16 -0800
commitc4065fb6d59f14fb71da2f2ecf94d2cc3455f92d (patch)
tree4aa908513070e89fe6e900ffee4ecc6d4dd668a0
parent2db0a472a3eebd043a18a2214cca464ab4b35936 (diff)
downloadaur-c4065fb6d59f14fb71da2f2ecf94d2cc3455f92d.tar.gz
Update to include credits as the licence referrs to it for the copyright holders.
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD11
2 files changed, 9 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d104a8d2820..6c07c7794f8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Sun Feb 5 09:03:40 UTC 2017
+# Sun Feb 5 09:59:05 UTC 2017
pkgbase = libc++
pkgver = 3.9.1
pkgrel = 1
@@ -12,7 +12,6 @@ pkgbase = libc++
makedepends = cmake
makedepends = python
makedepends = libunwind
- makedepends = llvm
depends = gcc-libs
noextract = llvm-3.9.1.src.tar.xz
noextract = llvm-3.9.1.src.tar.xz.sig
@@ -35,7 +34,6 @@ pkgbase = libc++
pkgname = libc++
pkgdesc = A new implementation of the C++ standard library, targeting C++11.
- depends = gcc-libs
depends = libc++abi=3.9.1-1
pkgname = libc++abi
@@ -43,6 +41,5 @@ pkgname = libc++abi
pkgname = libc++experimental
pkgdesc = A new implementation of the C++ standard library, targeting C++11 (experimental library)
- depends = gcc-libs
depends = libc++=3.9.1-1
diff --git a/PKGBUILD b/PKGBUILD
index d76d3635493..75f028baf29 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@ url="http://libcxx.llvm.org/"
license=('MIT' 'custom:University of Illinois/NCSA Open Source License')
arch=('i686' 'x86_64')
depends=('gcc-libs')
-makedepends=('clang' 'cmake' 'python' 'libunwind' 'llvm')
+makedepends=('clang' 'cmake' 'python' 'libunwind')
source=("http://llvm.org/releases/$pkgver/llvm-$pkgver.src.tar.xz"{,.sig}
"http://llvm.org/releases/$pkgver/libcxx-$pkgver.src.tar.xz"{,.sig}
"http://llvm.org/releases/$pkgver/libcxxabi-$pkgver.src.tar.xz"{,.sig})
@@ -41,6 +41,8 @@ prepare() {
bsdtar --strip-components 1 --uid 0 --gid 0 -zxf \
${srcdir}/${source[4]##*/} -C \
llvm/projects/libcxxabi
+ sed -i 's/CREDITS.TXT/CREDITS/' llvm/projects/libcxx/LICENSE.TXT
+ sed -i 's/CREDITS.TXT/CREDITS/' llvm/projects/libcxxabi/LICENSE.TXT
[[ -d build ]] || mkdir build
}
@@ -58,9 +60,10 @@ build() {
package_libc++() {
pkgdesc='A new implementation of the C++ standard library, targeting C++11.'
- depends+=("libc++abi=${pkgver}-${pkgrel}")
+ depends=("libc++abi=${pkgver}-${pkgrel}")
cd ${srcdir}/build
make DESTDIR="${pkgdir}" install-libcxx
+ install -Dm644 ${srcdir}/llvm/projects/libcxx/CREDITS.TXT "${pkgdir}/usr/share/licenses/${pkgname}/CREDITS"
install -Dm644 ${srcdir}/llvm/projects/libcxx/LICENSE.TXT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
@@ -68,12 +71,14 @@ package_libc++abi() {
pkgdesc='A new implementation of low level support for a standard C++ library'
cd ${srcdir}/build
make DESTDIR="${pkgdir}" install-libcxxabi
+ install -Dm644 ${srcdir}/llvm/projects/libcxxabi/CREDITS.TXT "${pkgdir}/usr/share/licenses/${pkgname}/CREDITS"
install -Dm644 ${srcdir}/llvm/projects/libcxxabi/LICENSE.TXT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_libc++experimental() {
- depends+=("libc++=$pkgver-$pkgrel")
+ depends=("libc++=$pkgver-$pkgrel")
pkgdesc='A new implementation of the C++ standard library, targeting C++11 (experimental library)'
install -Dm644 ${srcdir}/build/lib/libc++experimental.a ${pkgdir}/usr/lib/libc++experimental.a
+ install -Dm644 ${srcdir}/llvm/projects/libcxx/CREDITS.TXT "${pkgdir}/usr/share/licenses/${pkgname}/CREDITS"
install -Dm644 ${srcdir}/llvm/projects/libcxx/LICENSE.TXT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}