summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD39
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ab2410e7f72
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = perl-mail-milter-authentication-handler-smime
+ pkgdesc = Authentication Milter Module for validation of SMIME
+ pkgver = 2.20180510
+ pkgrel = 1
+ url = http://search.cpan.org/dist/Mail-Milter-Authentication-Handler-SMIME
+ arch = any
+ license = GPL
+ license = PerlArtistic
+ makedepends = perl-test-perl-critic
+ depends = perl
+ depends = perl-mail-milter-authentication
+ depends = perl-convert-x509
+ depends = perl-crypt-smime
+ options = !emptydirs
+ source = http://cpan.perl.org/modules/by-module/Mail/Mail-Milter-Authentication-Handler-SMIME-2.20180510.tar.gz
+ sha256sums = be26a02d6848faee2e850f4d7ac8fe7d9fe5449e153c3cf08a6c3acb80d31237
+
+pkgname = perl-mail-milter-authentication-handler-smime
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6f17a37ed97
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Jimmy Xu <me at jimmyxu dot org>
+
+_perlmod='Mail-Milter-Authentication-Handler-SMIME'
+_modnamespace=Mail
+pkgname=perl-mail-milter-authentication-handler-smime
+pkgver=2.20180510
+pkgrel=1
+pkgdesc="Authentication Milter Module for validation of SMIME"
+arch=("any")
+url="http://search.cpan.org/dist/$_perlmod"
+license=('GPL' 'PerlArtistic')
+depends=('perl' 'perl-mail-milter-authentication' 'perl-convert-x509' 'perl-crypt-smime')
+makedepends=('perl-test-perl-critic')
+options=('!emptydirs')
+source=("http://cpan.perl.org/modules/by-module/$_modnamespace/$_perlmod-$pkgver.tar.gz")
+sha256sums=('be26a02d6848faee2e850f4d7ac8fe7d9fe5449e153c3cf08a6c3acb80d31237')
+
+build() {
+ cd "$srcdir/$_perlmod-$pkgver"
+
+ # Install module in vendor directories.
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$srcdir/$_perlmod-$pkgver"
+
+ # Install module in vendor directories.
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make test
+}
+
+package() {
+ cd "$srcdir/$_perlmod-$pkgver"
+ make install DESTDIR="$pkgdir/"
+}
+
+# vim:set ts=2 sw=2 et: