public
Created

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
pkgname=packer
pkgver=20110624
pkgrel=2
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'
_gitname='packer'
 
build() {
cd "$startdir/src"
msg "Connecting to github GIT server...."
if [ -d "$startdir/src/$_gitname" ] ; then
cd $_gitname && git pull origin
else
git clone "$_gitroot"
cd $_gitname
fi
# Remove -D option from install and inserted real mkdir -p
mkdir -p $startdir/pkg/usr/bin/
mkdir -p $startdir/pkg/usr/share/man/man8/
install -m 755 packer "$startdir/pkg/usr/bin/packer"
install -m 644 packer.8 "$startdir/pkg/usr/share/man/man8/packer.8"
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.