aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-data-ical/APKBUILD
blob: 7e375382c1cc046a3b415bcf422925a9a5ba3ef9 (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
40
41
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=perl-data-ical
_pkgreal=Data-ICal
pkgver=0.24
pkgrel=0
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"
cpandepends="perl-test-nowarnings perl-test-warn perl-text-vfile-asdata
	perl-class-returnvalue perl-test-longstring perl-class-accessor perl-file-slurp"
depends="$cpandepends"
makedepends="perl-dev 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() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	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"