Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 11th, 2011  |  syntax: None  |  size: 1.44 KB  |  views: 63  |  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. pkgname=mr
  2. pkgver=1.03
  3. pkgrel=1
  4. pkgdesc='Checkout, update, or perform other actions on a set of VC repositories as if they were one.'
  5. arch=('i686' 'x86_64')
  6. url='http://kitenet.net/~joey/code/mr/'
  7. license=('GPL2')
  8. groups=()
  9. depends=('perl' ' perl-libwww' 'perl-html-parser' 'perl-uri')
  10. makedepends=('git' 'rsync')
  11. provides=()
  12. conflicts=()
  13. replaces=()
  14. backup=()
  15. options=()
  16. source=()
  17. noextract=()
  18. md5sums=()
  19. optdepends=('git: support for git repositories'
  20.             'cvs: support for cvs repositories'
  21.             'svn: support for subversion repositories'
  22.             'mercurial: support for mercurial repositories'
  23.             'bzr: support for bzr repositories'
  24.             'darcs: support for darcs repositories')
  25.  
  26. build()
  27. {
  28.   local _gitroot='git://git.kitenet.net/mr'
  29.  
  30.   cd "${srcdir}"
  31.   if [ -d mr ] ; then
  32.     cd mr
  33.     git checkout master
  34.     git pull origin
  35.   else
  36.     git clone --depth=1 "${_gitroot}"
  37.   fi
  38.   cd "${srcdir}/mr"
  39.   git checkout "${pkgver}"
  40.   rsync -aH --del "${srcdir}/mr/" "${srcdir}/build/"
  41.   cd "${srcdir}/build"
  42.   make
  43. }
  44.  
  45. check()
  46. {
  47.   cd "${srcdir}/build"
  48.   make test
  49. }
  50.  
  51. package()
  52. {
  53.   cd "${srcdir}/build"
  54.   install -m755 -D mr "${pkgdir}/usr/bin/mr"
  55.   install -m755 -D webcheckout "${pkgdir}/usr/bin/webcheckout"
  56.   install -m644 -D mr.1 "${pkgdir}/usr/share/man/man1/mr.1"
  57.   install -m644 -D webcheckout.1 "${pkgdir}/usr/share/man/man1/webcheckout.1"
  58.   install -m644 -D README "${pkgdir}/usr/share/doc/${pkgname}/README"
  59. }