SHARE
TWEET

Untitled

a guest Aug 14th, 2010 117 Never
  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. }
RAW Paste Data
Top