aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-email-address-list/APKBUILD
blob: d8a87a3b0ce89e69e026596ce19c242f94d22074 (plain)
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
37
38
39
40
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-email-address-list
pkgver=0.05
pkgrel=1
pkgdesc="RFC close address list parsing"
url="http://search.cpan.org/dist/Email-Address-List/"
arch="noarch"
license="GPL+ or Artistic"
depends="perl perl-email-address"
makedepends="perl-dev perl-json"
install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/Email-Address-List-$pkgver.tar.gz"

_builddir="$srcdir"/Email-Address-List-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make && make test || return 1
}

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

md5sums="0b723b59596f9dd998c35b0eb89cc935  Email-Address-List-0.05.tar.gz"
sha256sums="705c23fc2163c2347ba0aea998450259f7b10577a368c6d310bd4e98b427a033  Email-Address-List-0.05.tar.gz"
sha512sums="cfb7ea59de8c164a632afdea2d269213052709d91d56869198e1e788452a1746d8f37ad681c946d4b705363311d95ad2babff6fadabda50818da3d2b9e14cde5  Email-Address-List-0.05.tar.gz"