From 995956498f77ace46aff17511948977848d23e30 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 1 Aug 2014 09:41:08 +0200 Subject: misc updates Signed-off-by: Florian Pritz --- perl-mail-checkuser/PKGBUILD | 82 ++++++++++++++++++++------------------------ 1 file changed, 37 insertions(+), 45 deletions(-) (limited to 'perl-mail-checkuser') diff --git a/perl-mail-checkuser/PKGBUILD b/perl-mail-checkuser/PKGBUILD index af9c2cb..6bb435d 100644 --- a/perl-mail-checkuser/PKGBUILD +++ b/perl-mail-checkuser/PKGBUILD @@ -1,54 +1,46 @@ -# Maintainer: Florian Pritz -# PKGBUILD generated by pacpan +# Packager: Florian Pritz + pkgname=perl-mail-checkuser -_realname=Mail-CheckUser pkgver=1.21 pkgrel=1 -pkgdesc="no description available" -arch=(i686 x86_64) -license=('unknown: check http://search.cpan.org/src/ILYAM/Mail-CheckUser-1.21/README.txt') -url="http://search.cpan.org/~ilyam/Mail-CheckUser" +pkgdesc='check email addresses for validity' +arch=(any) +license=(PerlArtistic GPL) options=(!emptydirs) +depends=(perl perl-net-dns) +url=https://metacpan.org/release/Mail-CheckUser +source=("http://search.cpan.org/CPAN/authors/id/I/IL/ILYAM/Mail-CheckUser-$pkgver.tar.gz") +md5sums=(32a57a4679e2bde8a85201617776d69f) +sha512sums=(9fbfc4698ca1ed4c0b953724b91f593b6ab2a5a08076874c531c3ec2e330c741f44d53c165262b51a7d9124b7cb6678eb0ed008ab3065a683857667950cd91ee) +_ddir="Mail-CheckUser-$pkgver" -depends=('perl') - -#provides=('Mail-CheckUser') -provides=('perl-mail-checkuser=1.21' 'perl-mail-checkuser=1.21') +build() +( + cd "$srcdir/$_ddir" + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps + unset PERL5LIB PERL_MM_OPT + /usr/bin/perl Makefile.PL + make +) -source=(http://search.cpan.org/CPAN/authors/id/I/IL/ILYAM/Mail-CheckUser-1.21.tar.gz) -md5sums=('32a57a4679e2bde8a85201617776d69f') +check() +( + cd "$srcdir/$_ddir" + export PERL_MM_USE_DEFAULT=1 + unset PERL5LIB + # tests fail + #make test +) -build() { - _expected_dir="${srcdir}/${_realname}-${pkgver}" - if [ -d "$_expected_dir" ]; then - cd "$_expected_dir" - else - _expected_dir="${srcdir}/$(bsdtar -t -f $(basename $source) | head -n1)" - if [ -d "$_expected_dir" ]; then - cd "$_expected_dir" - else - _makefile=$(find $srcdir -iname Makefile.PL) - if [ ! -z "$_makefile" ]; then - _expected_dir=$(dirname $_makefile) - if [ -d "$_expected_dir" ]; then - cd "$_expected_dir" - else - echo "ERROR unable to detect source directory" - echo "--> this is often due to CPAN's lack of standard naming conventions" - echo "--> it may be possible to fix this by adjusting the build function in the PKGBUILD" - fi - fi - fi - fi - # install module in vendor directories. - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 - make install DESTDIR=${pkgdir} || return 1 - - # remove perllocal.pod and .packlist - find ${pkgdir} -name perllocal.pod -delete - find ${pkgdir} -name .packlist -delete -} +package() +( + cd "$srcdir/$_ddir" + make install INSTALLDIRS=vendor DESTDIR="$pkgdir" + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +) +# Local Variables: +# mode: shell-script +# sh-basic-offset: 2 +# End: # vim:set ts=2 sw=2 et: - -- cgit v1.2.3-24-g4f1b