Guest User

python2-pysces-metatool-svn PKGBUILD

a guest
Mar 27th, 2013
43
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: your name <your@e-mail>
  2. pkgname=python2-pysces-metatool-svn
  3. _pkgname=python2-pysces-metatool
  4. _projectname=pysces_metatool
  5. pkgver=990
  6. pkgrel=1
  7. pkgdesc="Elementary mode support for PySCeS, the Python simulator for Cellular Systems."
  8. arch=('i686' 'x86_64')
  9. depends=('python2-pysces')
  10. makedepends=('subversion')
  11. url="http://pysces.sourceforge.net/"
  12. license=('BSD' 'GPL')
  13. provides=($_pkgname)
  14. conflicts=($_pkgname)
  15. source=('meta4.3_int_gcc4.3.2.cpp.patch')
  16. md5sums=('31f5e98fc3045be126241efd3f88111d')
  17.  
  18. _svntrunk=svn://svn.code.sf.net/p/pysces/code/trunk/pysces_metatool
  19. _svnmod=$_projectname
  20.  
  21. build() {
  22.   cd "$srcdir"
  23.   msg "Connecting to SVN server...."
  24.  
  25.   if [[ -d "$_svnmod/.svn" ]]; then
  26.     (cd "$_svnmod" && svn up -r "$pkgver")
  27.   else
  28.     svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
  29.   fi
  30.  
  31.   msg "SVN checkout done or server timeout"
  32.   msg "Starting build..."
  33.  
  34.   rm -rf "$srcdir/$_svnmod-build"
  35.   svn export "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
  36.  
  37.   msg "Patching meta4.3_int_gcc4.3.2.cpp..."
  38.   cd "$srcdir/$_svnmod-build/pysces/metatool"
  39.   patch -p0 < "$srcdir/meta4.3_int_gcc4.3.2.cpp.patch"
  40.  
  41.   cd "$srcdir/$_svnmod-build"
  42.   python2 setup.py build
  43. }
  44.  
  45. package() {
  46.   cd "$srcdir/$_svnmod-build"
  47.   python2 setup.py install --root="$pkgdir/" --skip-build --optimize=1
  48. }
RAW Paste Data