Skip to content

Instantly share code, notes, and snippets.

@Silberbogen
Created June 24, 2011 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Silberbogen/1045580 to your computer and use it in GitHub Desktop.
Save Silberbogen/1045580 to your computer and use it in GitHub Desktop.
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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment