This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 14th, 2010  |  syntax: None  |  size: 0.85 KB  |  views: 115  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Matthew Bruenig <matthewbruenig@gmail.com>
  2.  
  3. pkgname=packer
  4. pkgver=20100815
  5. pkgrel=1
  6. pkgdesc="Bash wrapper for pacman and aur"
  7. url="http://github.com/bruenig/packer"
  8. license="GPL"
  9. arch=('any')
  10. makedepends=('git')
  11. depends=('grep' 'sed' 'coreutils' 'bash' 'wget' 'pacman')
  12. optdepends=('sudo: install and update packages as non-root'
  13.             'pacman-color: colorized output')
  14. _gitroot='git://github.com/bruenig/packer.git'
  15. _gitname='packer'
  16.  
  17. build() {
  18.     cd "$srcdir"
  19.  
  20.     msg "Connecting to github GIT server...."
  21.  
  22.     if [ -d "$srcdir/$_gitname" ] ; then
  23.         cd $_gitname && git pull origin
  24.     else
  25.         git clone "$_gitroot"
  26.         cd $_gitname
  27.     fi
  28. }
  29.  
  30. package() {
  31.     cd $_gitname
  32.  
  33.     install -m 755 -D packer "$pkgdir/usr/bin/packer"
  34.     install -m 644 -D packer.8 "$pkgdir/usr/share/man/man8/packer.8"
  35. }
clone this paste RAW Paste Data