Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pkgname=packer
- pkgver=20110301
- pkgrel=1
- pkgdesc="Bash wrapper for Pacman and AUR"
- url="http://github.com/bruenig/packer"
- license="GPL"
- arch=('any')
- makedepends=('git')
- depends=('grep' 'sed' 'bash' 'curl' 'pacman')
- optdepends=('sudo: install and update packages as non-root'
- 'pacman-color: colorized output')
- _gitroot='http://github.com/bruenig/packer.git'
- build() { # removed some extra white space
- msg "Connecting to github GIT server...." # no need to cd to "$srcdir" or ("$startdir/src") - we are already there
- if [ -d $pkgname ]; then # same thing and: $pkgname = $_gitname ('packer')
- cd $pkgname && git pull origin
- else
- git clone $_gitroot # no quotes required ($_gitroot doesn't contain spaces)
- fi
- }
- package() { # using the package() function
- cd $pkgname
- install -m 755 -D packer "$pkgdir/usr/bin/packer" # "$pkgdir" = "$startdir/pkg"
- install -m 644 -D packer.8 "$pkgdir/usr/share/man/man8/packer.8"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement