aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-datetime-format-mail/APKBUILD
blob: ffb5bd1f7edd01009e147a0f17de2aba95991a7f (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-datetime-format-mail
pkgver=0.403
pkgrel=0
pkgdesc="DateTime::Format::Mail perl module"
url="http://search.cpan.org/dist/DateTime-Format-Mail/"
arch="noarch"
license="GPL-2.0 or Artistic"
depends="perl perl-datetime perl-params-validate"
makedepends="perl-dev"
install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/B/BO/BOOK/DateTime-Format-Mail-$pkgver.tar.gz"

builddir="$srcdir"/DateTime-Format-Mail-$pkgver

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="b5e6f0ffdda3c52aa64b65414f399dcc06f72004c5421f8f0dbf1f9d4cda6e0deb1c3873df62531dc265a44ac66fd110dfc1d4273c97a48b0c472a67b03fd56f  DateTime-Format-Mail-0.403.tar.gz"