Created
June 24, 2011 20:14
-
-
Save Silberbogen/1045580 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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