Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 15th, 2012  |  syntax: None  |  size: 1.18 KB  |  views: 48  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Steve Anton <anxuiz.nx@gmail.com>
  2.  
  3. pkgname=libcxx-svn
  4. pkgver=163949
  5. pkgrel=1
  6. pkgdesc="a new implementation of the C++ standard library targeting C++0X"
  7. arch=('i686' 'x86_64')
  8. url="http://libcxx.llvm.org/"
  9. license=('custom:University of Illinois/NCSA Open Source License')
  10. depends=('gcc-libs')
  11. makedepends=('clang' 'cmake' 'subversion')
  12. source=()
  13. md5sums=()
  14.  
  15. _svntrunk=http://llvm.org/svn/llvm-project/libcxx/trunk
  16. _svnmod=libcxx
  17.  
  18. build() {
  19.   cd "$srcdir"
  20.  
  21.   if [ -d $_svnmod/.svn ]; then
  22.     cd $_svnmod
  23.     svn up
  24.   else
  25.     svn co $_svntrunk --config-dir ./ $_svnmod
  26.     cd $_svnmod
  27.   fi
  28.  
  29.   msg "SVN checkout done or server timeout"
  30.   msg "Starting make..."
  31.  
  32.   cd "lib"
  33.   ./buildit
  34. }
  35.  
  36. package() {
  37.   cd "$srcdir/$_svnmod/lib"
  38.   mkdir -p "$pkgdir/usr/lib"
  39.   cp "libc++.so.1.0" "$pkgdir/usr/lib"
  40.   ln -rs "$pkgdir/usr/lib/libc++.so.1.0" "$pkgdir/usr/lib/libc++.so.1"
  41.   ln -rs "$pkgdir/usr/lib/libc++.so.1.0" "$pkgdir/usr/lib/libc++.so"
  42.    
  43.   mkdir -p "$pkgdir/usr/include/c++"
  44.   cp -r "$srcdir/$_svnmod/include" "$pkgdir/usr/include/c++/v1"
  45.  
  46.   cd "$srcdir/$_svnmod"
  47.   install -Dm644 LICENSE.TXT "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
  48. }
clone this paste RAW Paste Data