Advertisement
Guest User

Untitled

a guest
Jul 10th, 2011
753
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. # Maintainer: Peter Simons <simons@cryp.to>
  2. pkgname=mr
  3. pkgver=1.03
  4. pkgrel=1
  5. pkgdesc='Checkout, update, or perform other actions on a set of VC repositories as if they were one.'
  6. arch=('any')
  7. url='http://kitenet.net/~joey/code/mr/'
  8. license=('GPL2')
  9. groups=()
  10. depends=('perl' 'perl-libwww' 'perl-html-parser' 'perl-uri')
  11. makedepends=('git' 'rsync')
  12. provides=()
  13. conflicts=()
  14. replaces=()
  15. backup=()
  16. options=()
  17. source=()
  18. noextract=()
  19. md5sums=()
  20. optdepends=('git: support for git repositories'
  21. 'cvs: support for cvs repositories'
  22. 'svn: support for subversion repositories'
  23. 'mercurial: support for mercurial repositories'
  24. 'bzr: support for bzr repositories'
  25. 'darcs: support for darcs repositories')
  26.  
  27. build()
  28. {
  29. local _gitroot='git://git.kitenet.net/mr'
  30.  
  31. cd "${srcdir}"
  32. if [ -d mr ] ; then
  33. cd mr
  34. git checkout master
  35. git pull origin
  36. else
  37. git clone --depth=1 "${_gitroot}"
  38. fi
  39. cd "${srcdir}/mr"
  40. git checkout "${pkgver}"
  41. rsync -aH --del "${srcdir}/mr/" "${srcdir}/build/"
  42. cd "${srcdir}/build"
  43. make
  44. }
  45.  
  46. check()
  47. {
  48. cd "${srcdir}/build"
  49. make test
  50. }
  51.  
  52. package()
  53. {
  54. cd "${srcdir}/build"
  55. install -m755 -D mr "${pkgdir}/usr/bin/mr"
  56. install -m755 -D webcheckout "${pkgdir}/usr/bin/webcheckout"
  57. install -m644 -D mr.1 "${pkgdir}/usr/share/man/man1/mr.1"
  58. install -m644 -D webcheckout.1 "${pkgdir}/usr/share/man/man1/webcheckout.1"
  59. install -m644 -D README "${pkgdir}/usr/share/doc/${pkgname}/README"
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement