aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-email-date-format/APKBUILD
blob: ad065f645ec394ca200bcf09a12357f0e4636a75 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: 
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-email-date-format
_pkgreal=Email-Date-Format
pkgver=1.004
pkgrel=0
pkgdesc="produce RFC 2822 date strings"
url="http://search.cpan.org/dist/Email-Date-Format/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="  perl-capture-tiny "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	make && make test
}

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

md5sums="c6b651d56996cd37f6e0251c5c3672ec  Email-Date-Format-1.004.tar.gz"
sha256sums="ca2975136dcb37b576056ebfadf22ae66b43e4620d9f0d673fcd5a7833118204  Email-Date-Format-1.004.tar.gz"
sha512sums="0a50b1139388a123be45c17d2beb6c91937260dafb742343d958d9ac703c818495deaa3620b4126f433a188435eab13a16a59fc25ab00f955b88e793f08e83b6  Email-Date-Format-1.004.tar.gz"