| 1 | # Generated by Xyne::Arch::CPAN 0.07 |
| 2 | |
| 3 | pkgname=perl-cgi-auth-basic |
| 4 | pkgver=1.210.0 |
| 5 | pkgrel=1 |
| 6 | pkgdesc="Basic CGI authentication interface." |
| 7 | arch=('i686' 'x86_64') |
| 8 | url="http://search.cpan.org/dist/CGI-Auth-Basic/" |
| 9 | license=('perl') |
| 10 | source=('http://search.cpan.org/CPAN/authors/id/B/BU/BURAK/CGI-Auth-Basic-1.21.tar.gz') |
| 11 | md5sums=('0b421234f3793791f3f8096537de69a6') |
| 12 | sha256sums=('922b55397e152383fe63af0cfad4e175945f78b6c609eb775df38d4dc0282431') |
| 13 | depends=('perl') |
| 14 | options=(!emptydirs) |
| 15 | |
| 16 | build() { |
| 17 | _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL') |
| 18 | if [ ! -z "$_dir" ]; then |
| 19 | cd $(dirname "$_dir") |
| 20 | PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 |
| 21 | make || return 1 |
| 22 | make install DESTDIR="${pkgdir}" || return 1 |
| 23 | |
| 24 | else |
| 25 | _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL') |
| 26 | if [ ! -z "$_dir" ]; then |
| 27 | cd $(dirname "$_dir") |
| 28 | PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1 |
| 29 | ./Build || return 1 |
| 30 | ./Build install destdir=${pkgdir} || return 1 |
| 31 | |
| 32 | else |
| 33 | echo "error: failed to detect build method for $pkgname" |
| 34 | echo "you may be able to fix this by editing the PKGBUILD" |
| 35 | return 1 |
| 36 | fi fi |
| 37 | |
| 38 | # remove perllocal.pod and .packlist |
| 39 | find ${pkgdir} -name perllocal.pod -delete |
| 40 | find ${pkgdir} -name .packlist -delete |
| 41 | } |
| 42 | |
| 43 | # vim:set ts=2 sw=2 et: |
| 44 | |