aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-data-ical/APKBUILD
blob: 3974b5937e2d6b94e57f153b84a2afdb4a3bbdad (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.21
pkgrel=0
pkgdesc="Generates iCalendar (RFC 2445) calendar files"
url="http://search.cpan.org/dist/Data-ICal/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-test-nowarnings perl-test-warn perl-text-vfile-asdata perl-class-returnvalue perl-test-longstring perl-class-accessor perl-file-slurp"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/Data-ICal-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make && make test
}

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

md5sums="6b5a8286d906264d82a372e33594c5d0  Data-ICal-0.21.tar.gz"
sha256sums="93c2b0b0800b52e753073094675338aa476183ea9b759872b11e44dd43c9b45d  Data-ICal-0.21.tar.gz"
sha512sums="d3c8295c043f3c39b6ff50f74031bf4949702dba3bb1013b06f98f7637f1334511ce6286c620f40133b9196bfd08dd940a31df622d05593c2a4a19cd778521b2  Data-ICal-0.21.tar.gz"