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

Untitled

By: a guest on Jan 23rd, 2011  |  syntax: None  |  size: 1.04 KB  |  views: 87  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Gergely Imreh <imrehgATgmailDOTcom>
  2. pkgname=stgit-git
  3. pkgver=20110123
  4. pkgrel=1
  5. pkgdesc="Pushing/popping patches to/from a stack on top of Git, similar to Quilt, developement version."
  6. url="http://www.procode.org/stgit/"
  7. arch=('i686' 'x86_64')
  8. license=('GPL')
  9. depends=('python' 'git')
  10. provides=('stgit')
  11. conflicts=('stgit')
  12. source=("setup.patch")
  13. md5sums=()
  14.  
  15. _gitroot="git://repo.or.cz/stgit.git"
  16. _gitname="stgit"
  17.  
  18. build() {
  19.   cd "${srcdir}"
  20.   msg "Connecting to GIT server...."
  21.  
  22.   if [ -d $_gitname ] ; then
  23.     cd ${_gitname} && git pull origin && cd ..
  24.     msg "The local files are updated."
  25.   else
  26.     git clone ${_gitroot}
  27.   fi
  28.  
  29.   msg "GIT checkout done or server timeout"
  30.   msg "Starting make..."
  31.  
  32.   rm -rf "${_gitname}-build"
  33.   git clone "${_gitname}" "${_gitname}-build"
  34.   cd "${_gitname}-build"
  35.  
  36.   #
  37.   # BUILD HERE
  38.   #
  39.   patch -p0 < ../setup.patch
  40.   python2 setup.py install --root=${pkgdir} --prefix=/usr || return 1
  41.  
  42.   rm -rf "${_gitname}-build"
  43. }
  44.  
  45. md5sums=('452cc05be63b32cd6deaeafc1916f8b0')
clone this paste RAW Paste Data