1 # Contributor: Olivier Mehani <shtrom-arch@ssji.net>
2 # $Id: PKGBUILD 298 2011-09-26 13:28:51Z shtrom $
6 pkgdesc="Perl Monkeysphere Validation Agent"
8 url="http://web.monkeysphere.info/"
10 depends=(monkeysphere gtk2-perl perl-http-server-simple perl-regexp-common perl-json perl-gnupg-interface perl-any-moose perl-any-moose perl-net-server perl-convert-asn1 perl-crypt-x509 perl-file-homedir perl-config-general)
12 provides=(msva-pearl monkeysphere-validation-agent)
15 _gitroot="git://git.monkeysphere.info/msva-perl"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_gitname-build"
33 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34 cd "$srcdir/$_gitname-build"
38 install -m 755 -D msva-perl $pkgdir/usr/bin/msva-perl
39 install -m 644 -D msva-perl.1 $pkgdir/usr/share/man/man1/msva-perl.1
40 install -m 755 -d $pkgdir/usr/share/perl5/vendor_perl/
41 cp -R {Net,Crypt} $pkgdir/usr/share/perl5/vendor_perl/