1 # Contributor: Emmanuel GRAS <gras.emmanuel@gmail.com>
5 pkgdesc="A PGP packet visualizer, git version"
7 url="http://www.mew.org/~kazu/proj/pgpdump/en/"
9 depends=('bzip2' 'zlib')
17 _gitroot="http://github.com/kazu-yamamoto/pgpdump.git"
21 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..."
31 rm -rf "$srcdir/$_gitname-build"
32 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build"
35 ./configure --prefix=/usr
40 cd "$srcdir/$_gitname-build"
41 install -D -m 755 pgpdump $pkgdir/usr/bin/pgpdump
42 install -D -m 644 pgpdump.1 $pkgdir/usr/share/man/man1/pgpdump.1
43 install -D -m 644 COPYRIGHT $pkgdir/usr/share/licenses/pgpdump-git/COPYRIGHT