updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / monkeysphere-git / PKGBUILD
blob252b767af1809b9f5195e4a5512e0330fbf48fb7
1 # Contributor: Olivier Mehani <shtrom-arch@ssji.net>
2 # $Id: PKGBUILD 299 2011-09-26 13:29:51Z shtrom $
3 pkgname=monkeysphere-git
4 pkgver=20110926
5 pkgrel=1
6 pkgdesc="Leverage the OpenPGP web of trust for OpenSSH and Web authentication"
7 arch=(i686 x86_64)
8 url="http://web.monkeysphere.info/"
9 license=('GPL3')
10 depends=(gnupg lockfile-progs perl-crypt-openssl-rsa perl-digest-sha1)
11 makedepends=('git')
12 provides=(monkeysphere)
13 conflicts=(monkeysphere)
14 install=monkeysphere.install
16 _gitroot="git://git.monkeysphere.info/monkeysphere"
17 _gitname="monkeysphere"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_gitname-build"
34   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
37   make DESTDIR="$pkgdir/" install
38   mkdir -p $pkgdir/var/lib/monkeysphere
39