mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
aur/packer
This commit is contained in:
parent
aa327f64e4
commit
2ba5eccd1a
1 changed files with 33 additions and 0 deletions
33
aur/packer/PKGBUILD
Normal file
33
aur/packer/PKGBUILD
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Maintainer: Kyle Keen <keenerd@gmail.com>
|
||||
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"
|
||||
}
|
||||
|
Loading…
Reference in a new issue