summaryrefslogblamecommitdiff
path: root/user/perl-email-date-format/APKBUILD
blob: fb41a6fed7c975d9369e6d2753dba24aa9d2d76a (plain) (tree)

































                                                                                                                                                                             
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-email-date-format
_pkgname=Email-Date-Format
pkgver=1.005
pkgrel=0
pkgdesc="Produce RFC 2822 date strings in Perl"
url="https://metacpan.org/release/Email-Date-Format"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-2.0-only"
depends=""
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Email-Date-Format-$pkgver.tar.gz"
builddir="$srcdir/Email-Date-Format-$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="23daefa45874211f053d05ac3c3f3c7c3a86d9b623fdcec3bd9f6f7b4c8e5ad1ac8038146bdc85cc950b21b43b0ad843f8a52ad2183d868d3a62ea96292e34ca  Email-Date-Format-1.005.tar.gz"