summaryrefslogtreecommitdiff
path: root/user/perl-email-simple/APKBUILD
blob: 50f8835f43cd4e53086cd5568f9496621cb23cdb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-email-simple
_pkgreal=Email-Simple
_author=RJBS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=2.216
pkgrel=0
pkgdesc="Simple parsing of RFC 2822 email messages and headers for Perl"
url="https://metacpan.org/release/Email-Simple"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-2.0-only"
depends="perl perl-email-date-format"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="2d729b6ad3cc493d27a8b3f775c046ca16dc53e7fe701fa78c87fbdeb350d3c9fe546ab0721504747f443f0f4e33d395b08b53374b32f89a842ef09a5b1dde70  Email-Simple-2.216.tar.gz"