aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-mime-lite
diff options
context:
space:
mode:
Diffstat (limited to 'main/perl-mime-lite')
-rw-r--r--main/perl-mime-lite/APKBUILD27
1 files changed, 15 insertions, 12 deletions
diff --git a/main/perl-mime-lite/APKBUILD b/main/perl-mime-lite/APKBUILD
index 056c3ff212..e507529f65 100644
--- a/main/perl-mime-lite/APKBUILD
+++ b/main/perl-mime-lite/APKBUILD
@@ -3,30 +3,33 @@
pkgname=perl-mime-lite
_pkgreal=MIME-Lite
pkgver=3.031
-pkgrel=0
+pkgrel=1
pkgdesc="low-calorie MIME generator"
-url="http://search.cpan.org/dist/MIME-Lite/"
+url="https://metacpan.org/release/MIME-Lite"
arch="noarch"
-license="GPL PerlArtistic"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-mime-types perl-email-date-format
perl-mailtools perl-test-pod-coverage"
-cpanmakedepends=""
depends="perl $cpandepends"
-makedepends="perl-dev $cpanmakedepends"
-install=
+makedepends="perl-dev"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"
+source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/MIME-Lite-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
build() {
- cd $_builddir
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make && make test || return 1
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
- cd $_builddir
+ cd "$builddir"
make DESTDIR="$pkgdir" install
# creates file collision among perl modules
find "$pkgdir" -name perllocal.pod -delete