Commit 17b32d27 authored by Leo's avatar Leo Committed by Natanael Copa

main/perl-mime-lite: clarify license, modernize

parent 7eb6d294
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment