1 # Maintainer: kevku <kevku@msn.com>
2 pkgname=perl-digest-ed2k
5 pkgdesc="Perl implementation of the ED2k hash used in ED2K URIs."
7 url="https://github.com/Kulag/Digest-ED2K"
8 license=('GPL' 'PerlArtistic')
9 depends=('perl>=5.10.0' 'perl-exporter-tidy' 'perl-common-sense' 'perl-digest-md4')
13 _gitroot="https://github.com/Kulag/Digest-ED2K.git"
14 _gitname="Digest-ED2K"
18 msg "Connecting to GIT server...."
20 if [ -d $_gitname ] ; then
21 cd $_gitname && git pull origin
22 msg "The local files are updated."
24 git clone $_gitroot $_gitname
27 msg "GIT checkout done or server timeout"
28 msg "Starting make..."
30 rm -rf "$srcdir/$_gitname-build"
31 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32 cd "$srcdir/$_gitname-build"
34 perl Build.PL installdirs=vendor destdir="$pkgdir/"
39 cd "$srcdir/$_gitname-build"