# Automatically generated by apkbuild-cpan, template 1 # Contributor: Leonardo Arena # Maintainer: Leonardo Arena setvar pkgname = 'perl-datetime-format-natural' setvar _pkgreal = 'DateTime-Format-Natural' setvar pkgver = '1.05' setvar pkgrel = '0' setvar pkgdesc = ""Create machine readable date/time with natural parsing logic"" setvar url = ""http://search.cpan.org/dist/DateTime-Format-Natural/"" setvar arch = ""noarch"" setvar license = ""GPL PerlArtistic"" setvar cpandepends = ""perl-datetime-timezone perl-clone perl-params-validate perl-list-moreutils perl-datetime perl-boolean"" setvar cpanmakedepends = ""perl-module-util perl-test-mocktime perl-date-calc perl-mro-compat perl-role-tiny"" setvar depends = "$cpandepends" setvar makedepends = ""perl-dev $cpanmakedepends"" setvar subpackages = ""$pkgname-doc"" setvar source = ""http://search.cpan.org/CPAN/authors/id/S/SC/SCHUBIGER/$_pkgreal-$pkgver.tar.gz"" setvar _builddir = ""$srcdir/$_pkgreal-$pkgver"" proc prepare { cd $_builddir export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}) perl Build.PL installdirs=vendor || return 1 } proc build { cd $_builddir export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}) ./Build && ./Build test } proc package { cd $_builddir ./Build install destdir="$pkgdir" || return 1 find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete } setvar sha512sums = ""d6c07a7e6345321dfffbf608fbd0ef8b050761b612f76ebb0cf06b9e883ca83863b71f846868c8323d6d0c428c9ec93a988bcb53f883045bd1de94926cba9e7e DateTime-Format-Natural-1.05.tar.gz""