summaryrefslogtreecommitdiffstats
path: root/perl-mail-checkuser/PKGBUILD
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-08-01 09:41:08 +0200
committerFlorian Pritz <bluewind@xinu.at>2014-08-01 09:41:08 +0200
commit995956498f77ace46aff17511948977848d23e30 (patch)
treec35064a482c50d133247cb4272d420e2756c511f /perl-mail-checkuser/PKGBUILD
parent94e6242e2a1465d87f22a659b8ad8b1b8216d430 (diff)
downloadaur-packages-master.tar.gz
aur-packages-master.tar.xz
misc updatesHEADmaster
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'perl-mail-checkuser/PKGBUILD')
-rw-r--r--perl-mail-checkuser/PKGBUILD82
1 files changed, 37 insertions, 45 deletions
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 <flo@xssn.at>
-# PKGBUILD generated by pacpan
+# Packager: Florian Pritz <bluewind@xinu.at>
+
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:
-