From 2ba5eccd1ad41949dba34082a72e55e8d6e18747 Mon Sep 17 00:00:00 2001 From: Mike Brown Date: Tue, 22 Jan 2013 14:03:23 -0500 Subject: [PATCH] aur/packer --- aur/packer/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 aur/packer/PKGBUILD diff --git a/aur/packer/PKGBUILD b/aur/packer/PKGBUILD new file mode 100644 index 000000000..e57f87498 --- /dev/null +++ b/aur/packer/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Kyle Keen +pkgname=packer +pkgver=20120302 +pkgrel=1 +pkgdesc="Bash wrapper for pacman and aur" +url="http://github.com/keenerd/packer" +license="GPL" +arch=('any') +makedepends=('git') +depends=('grep' 'sed' 'bash' 'curl' 'pacman' 'jshon') +optdepends=('sudo: install and update packages as non-root' + 'customizepkg: apply customizepkg modifications') +_gitroot='https://github.com/keenerd/packer.git' +_gitname='packer' + +build() { + cd "$srcdir" + + msg "Connecting to github GIT server...." + + if [ -d "$srcdir/$_gitname" ] ; then + cd $_gitname && git pull origin + else + git clone "$_gitroot" + cd $_gitname + fi + + mkdir -p "$pkgdir/usr/bin/" + mkdir -p "$pkgdir/usr/share/man/man8/" + install -m 755 packer "$pkgdir/usr/bin/packer" + install -m 644 packer.8 "$pkgdir/usr/share/man/man8/packer.8" +} +