Add a git PKGBUILD

This commit is contained in:
Thomas S Hatch 2011-03-17 11:57:49 -06:00
parent 46bbeac9b3
commit cbd5a2b7a9

48
PKGBUILD-git Normal file
View file

@ -0,0 +1,48 @@
# Maintainer: Thomas S Hatch <thatch45 at gmail dot com>
pkgname=salt-git
pkgver=20110310
pkgrel=1
pkgdesc="A remote execution and communication system built on zeromq"
arch=('any')
url="https://github.com/thatch45/salt"
license=('APACHE')
groups=()
depends=('python2'
'pyzmq'
'python-m2crypto'
'python-yaml'
'pycrypto'
'facter')
makedepends=('git')
provides=()
backup=('etc/salt/master'
'etc/salt/minion')
options=()
source=()
_gitroot="git://github.com/thatch45/salt.git"
_gitname="salt"
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot $_gitname
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
}
package() {
cd "$srcdir/$_gitname-build"
python2 setup.py install --root=$pkgdir/ --optimize=1
}