aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-mail-tools/APKBUILD
blob: 09c92e067716b21c2d47999f2f02ded3dce7d0e5 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-mail-tools
_realname=MailTools
pkgver=2.18
pkgrel=0
pkgdesc="Manipulation of electronic mail addresses"
url="http://search.cpan.org/~markov/"
arch="noarch"
license="GPL PerlArtistic"
depends="perl perl-time-date perl-test-pod"
makedepends="perl-dev"
install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/$_realname-$pkgver.tar.gz"

build() {
	cd "$srcdir/$_realname-$pkgver"

	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make || return 1
}

package() {
	cd "$srcdir/$_realname-$pkgver"
	make DESTDIR="$pkgdir" install
	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete
}

md5sums="972468ab5207b90398d77bed4ffc361d  MailTools-2.18.tar.gz"
sha256sums="dfee9e770257371112f20d978e637759e81bc4f19e97b083585c71ecab37b527  MailTools-2.18.tar.gz"
sha512sums="2bd3f16bedf38c067f5fb7e719d0750ff96a8893e60abbc50568e0bc135a0acb4a8f6a18474e6884ab5b916d4959dbe4ba6a5b271e446bd68073b91dbc1ca7c2  MailTools-2.18.tar.gz"