updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pgpdump-git / PKGBUILD
blob91985de5c34a25e8bd00a0e87553c7fb5b18c669
1 # Contributor: Emmanuel GRAS <gras.emmanuel@gmail.com>
2 pkgname=pgpdump-git
3 pkgver=20101202
4 pkgrel=1
5 pkgdesc="A PGP packet visualizer, git version"
6 arch=('i686' 'x86_64')
7 url="http://www.mew.org/~kazu/proj/pgpdump/en/"
8 license=('custom')
9 depends=('bzip2' 'zlib')
10 optdepends=()
11 makedepends=('git')
12 provides=('pgpdump')
13 conflicts=('pgpdump')
14 source=()
15 md5sums=()
17 _gitroot="http://github.com/kazu-yamamoto/pgpdump.git"
18 _gitname="pgpdump"
20 build() {
21   msg "Connecting to GIT server..."
22   if [[ -d $_gitname ]]; then
23    cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
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
36   make 
39 package() {
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