1 # Maintainer: Xavier Devlamynck <magicrhesus@ouranos.be>
3 # Generated by Xyne::Arch::CPAN 0.07
5 pkgname=perl-asterisk-ami
8 pkgdesc="Perl module for interacting with the Asterisk Manager Interface"
10 url="http://search.cpan.org/~greenbean/Asterisk-AMI-v$pkgver/"
11 license=('Artistic 2.0')
12 source=(http://search.cpan.org/CPAN/authors/id/G/GR/GREENBEAN/Asterisk-AMI-v$pkgver.tar.gz)
13 md5sums=('620ab0d0470d8c95920ff2f25c3bbbb7')
14 depends=('perl-anyevent>=5.20' 'perl-digest-md5' 'perl-parent' 'perl-version')
15 makedepends=('perl-extutils-makemaker')
16 optdepends=('perl-ev' 'perl-net-ssleay')
17 provides=('perl-asterisk-ami-common-dev=0.2.8' 'perl-asterisk-ami-common=0.2.8' 'perl-asterisk-ami=0.2.8')
21 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL')
22 if [ ! -z "$_dir" ]; then
24 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
26 make install DESTDIR="${pkgdir}"
29 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL')
30 if [ ! -z "$_dir" ]; then
32 PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor
34 ./Build install destdir=${pkgdir}
37 echo "error: failed to detect build method for $pkgname"
38 echo "you may be able to fix this by editing the PKGBUILD"
42 # remove perllocal.pod and .packlist
43 find ${pkgdir} -name perllocal.pod -delete
44 find ${pkgdir} -name .packlist -delete
47 # vim:set ts=2 sw=2 et: