summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Wojdyla2021-02-05 14:08:40 +0100
committerMichal Wojdyla2021-02-05 14:08:40 +0100
commit10246ab90c7fe78f28145ba4fdfd9cfd4d38935f (patch)
tree790753fb9e9d0e21807deacc6167d2bd90b97c3e
parent66e0e2df1633e022b33bb66d5385f40107d1a074 (diff)
downloadaur-perl-smtp-server.tar.gz
fix broken build
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD22
2 files changed, 8 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 657c9a907c8e..75697f1f7ae6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,13 +2,13 @@ pkgbase = perl-smtp-server
pkgdesc = A native Perl SMTP Server implementation for Perl.
pkgver = 1.1
pkgrel = 1
- url = http://search.cpan.org/dist/SMTP-Server
+ url = https://metacpan.org/release/SMTP-Server
arch = any
license = PerlArtistic
license = GPL
depends = perl
options = !emptydirs
- source = http://search.cpan.org/CPAN/authors/id/M/MA/MACGYVER/SMTP-Server-1.1.tar.gz
+ source = https://search.cpan.org/CPAN/authors/id/M/MA/MACGYVER/SMTP-Server-1.1.tar.gz
md5sums = 29539763294a4cbe88d3e520b3de45c1
sha512sums = c24cc6def7e3f1eaf88c1c66ab845ea1c5226121f8ea25c6c019b7d90650fa3e3fc1974b0c9aa6542d80914ab0c98319bee8fce854a9c5e22633bfd7afe758cf
diff --git a/PKGBUILD b/PKGBUILD
index b8d4ae94aaa1..da87062ac345 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,3 @@
-# Contributor: Anonymous
-# Generator : CPANPLUS::Dist::Arch 1.23
-
pkgname='perl-smtp-server'
pkgver='1.1'
pkgrel='1'
@@ -10,11 +7,10 @@ license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl')
makedepends=()
-url='http://search.cpan.org/dist/SMTP-Server'
-source=('http://search.cpan.org/CPAN/authors/id/M/MA/MACGYVER/SMTP-Server-1.1.tar.gz')
+url='https://metacpan.org/release/SMTP-Server'
+source=('https://search.cpan.org/CPAN/authors/id/M/MA/MACGYVER/SMTP-Server-1.1.tar.gz')
md5sums=('29539763294a4cbe88d3e520b3de45c1')
sha512sums=('c24cc6def7e3f1eaf88c1c66ab845ea1c5226121f8ea25c6c019b7d90650fa3e3fc1974b0c9aa6542d80914ab0c98319bee8fce854a9c5e22633bfd7afe758cf')
-_distdir="${srcdir}/SMTP-Server-1.1"
build() {
( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
@@ -23,27 +19,21 @@ build() {
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
- cd "$_distdir"
+ cd SMTP-Server-1.1
/usr/bin/perl Makefile.PL
make
)
}
check() {
- cd "$_distdir"
+ cd SMTP-Server-1.1
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
make test
)
}
package() {
- cd "$_distdir"
+ cd SMTP-Server-1.1
make install
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:
+} \ No newline at end of file