summaryrefslogtreecommitdiffstats
path: root/perl-mail-checkuser
diff options
context:
space:
mode:
Diffstat (limited to 'perl-mail-checkuser')
-rw-r--r--perl-mail-checkuser/PKGBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/perl-mail-checkuser/PKGBUILD b/perl-mail-checkuser/PKGBUILD
new file mode 100644
index 0000000..208a78b
--- /dev/null
+++ b/perl-mail-checkuser/PKGBUILD
@@ -0,0 +1,53 @@
+# PKGBUILD generated by pacpan
+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"
+options=(!emptydirs)
+
+depends=('perl')
+
+#provides=('Mail-CheckUser')
+provides=('perl-mail-checkuser=1.21' 'perl-mail-checkuser=1.21')
+
+source=(http://search.cpan.org/CPAN/authors/id/I/IL/ILYAM/Mail-CheckUser-1.21.tar.gz)
+md5sums=('32a57a4679e2bde8a85201617776d69f')
+
+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
+}
+
+# vim:set ts=2 sw=2 et:
+