# Automatically generated by apkbuild-cpan, template 1
# Contributor: Sheila Aman <sheila@vulpine.house>
# Maintainer: Sheila Aman <sheila@vulpine.house>
pkgname=perl-data-ical
_pkgreal=Data-ICal
pkgver=0.24
pkgrel=3
pkgdesc="Generates iCalendar (RFC 2445) calendar files"
url="https://metacpan.org/release/Data-ICal"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="
	perl perl-test-nowarnings perl-test-warn perl-text-vfile-asdata perl-class-returnvalue
	perl-test-longstring perl-class-accessor perl-file-slurp
	"
makedepends="perl-module-install"
checkdepends="perl-pod-coverage"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/B/BP/BPS/Data-ICal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	make
}

check() {
	make test
}

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

sha512sums="592cc76dd8dd00d8ce365a7105c6b732ecb94838876d6b430f1f3078e8674f9584c5a6248c5ec5ebbee9d35f3758d9709d45e70728899c528d030424abe81d9e  Data-ICal-0.24.tar.gz"
