mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
33 lines
887 B
Bash
33 lines
887 B
Bash
# 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"
|
|
}
|
|
|