From 5cefbdf9b8c1b1687983babf670a8af7c152029c Mon Sep 17 00:00:00 2001 From: Harvie Date: Fri, 21 Jan 2011 18:42:49 +0100 Subject: [PATCH] added perl CGI::Auth::Basic --- perl-cgi-auth-basic/PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 perl-cgi-auth-basic/PKGBUILD diff --git a/perl-cgi-auth-basic/PKGBUILD b/perl-cgi-auth-basic/PKGBUILD new file mode 100644 index 0000000..1201a69 --- /dev/null +++ b/perl-cgi-auth-basic/PKGBUILD @@ -0,0 +1,44 @@ +# Generated by Xyne::Arch::CPAN 0.07 + +pkgname=perl-cgi-auth-basic +pkgver=1.210.0 +pkgrel=1 +pkgdesc="Basic CGI authentication interface." +arch=('i686' 'x86_64') +url="http://search.cpan.org/dist/CGI-Auth-Basic/" +license=('perl') +source=('http://search.cpan.org/CPAN/authors/id/B/BU/BURAK/CGI-Auth-Basic-1.21.tar.gz') +md5sums=('0b421234f3793791f3f8096537de69a6') +sha256sums=('922b55397e152383fe63af0cfad4e175945f78b6c609eb775df38d4dc0282431') +depends=('perl') +options=(!emptydirs) + +build() { + _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL') + if [ ! -z "$_dir" ]; then + cd $(dirname "$_dir") + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make || return 1 + make install DESTDIR="${pkgdir}" || return 1 + + else + _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL') + if [ ! -z "$_dir" ]; then + cd $(dirname "$_dir") + PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1 + ./Build || return 1 + ./Build install destdir=${pkgdir} || return 1 + + else + echo "error: failed to detect build method for $pkgname" + echo "you may be able to fix this by editing the PKGBUILD" + return 1 + fi fi + + # remove perllocal.pod and .packlist + find ${pkgdir} -name perllocal.pod -delete + find ${pkgdir} -name .packlist -delete +} + +# vim:set ts=2 sw=2 et: + -- 2.30.2