Commit a03d5e08 authored by Roberto Oliveira's avatar Roberto Oliveira Committed by Natanael Copa

main/perl-data-ical-doc: add missing make dependency and modernize

parent 7cbd0fd4
......@@ -4,38 +4,41 @@
pkgname=perl-data-ical
_pkgreal=Data-ICal
pkgver=0.21
pkgrel=0
pkgrel=1
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=" "
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
makedepends="perl-dev $cpanmakedepends perl-module-install"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/Data-ICal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$_builddir"
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$_builddir"
cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make && make test
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
cd "$builddir"
make DESTDIR="$pkgdir" install
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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment