aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-email-address-list/APKBUILD
blob: aa11fb128aea69a60a48931b6166cbeb8658adc9 (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
35
36
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-email-address-list
pkgver=0.06
pkgrel=1
pkgdesc="RFC close address list parsing"
url="https://metacpan.org/release/Email-Address-List/"
arch="noarch"
license="GPL+ or Artistic"
depends="perl perl-email-address"
makedepends="perl-dev perl-json perl-module-install"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/B/BP/BPS/Email-Address-List-$pkgver.tar.gz"
builddir="$srcdir/Email-Address-List-$pkgver"

# secfixes:
#   0.06-r0:
#     - CVE-2018-18898

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="8a173198bed7b5bf41801de9713f424459366b937493bb15c0362843cfe78ca02ce2709f2fe31f3fd61752c0d52956b059e09c3becdbfab0887e9efae6112141  Email-Address-List-0.06.tar.gz"