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

Untitled

By: a guest on Jun 24th, 2010  |  syntax: None  |  size: 1.01 KB  |  views: 145  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Alexander Rødseth <rodseth@gmail.com>
  2. pkgname=unladen-swallow-svn
  3. pkgver=442
  4. pkgrel=1
  5. pkgdesc="Python compiled with LLVM (a quicker Python than CPython)"
  6. arch=('i686' 'x86_64')
  7. url="http://code.google.com/p/unladen-swallow/"
  8. license=('custom')
  9. depends=('db' 'bzip2' 'gdbm' 'openssl>=0.9.8d' 'zlib')
  10. makedepends=('subversion' 'tk>=8.5.0' 'sqlite3' 'clang')
  11. provides=('python=2.6')
  12. conflicts=('python')
  13. _svntrunk=http://unladen-swallow.googlecode.com/svn/trunk/
  14. _svnmod=unladen-swallow
  15.  
  16. build() {
  17.   cd ${srcdir}
  18.   if [ -d $_svnmod/.svn ]; then
  19.     (cd $_svnmod && svn up -r $pkgver)
  20.   else
  21.     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
  22.   fi
  23.   msg "SVN checkout done or server timeout"
  24.   cd $_svnmod
  25.  
  26.   msg "Configuring..."
  27.   ./configure --prefix=/usr --enable-shared --with-threads --enable-unicode
  28.  
  29.   msg "Building..."
  30.   make || return 1
  31.   make DESTDIR="$pkgdir/" install
  32.  
  33.   install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
  34. }
  35.  
  36. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data