aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-data-ical/APKBUILD
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-13 12:54:49 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-11-13 15:47:54 +0000
commita03d5e0866e6a4baed3797ddfda49434708e81e0 (patch)
treed74630eb63d67eb3e4d5d99428a580f8527a2808 /main/perl-data-ical/APKBUILD
parent7cbd0fd40f7dc571ab172849f10d2d8b5227b010 (diff)
downloadaports-a03d5e0866e6a4baed3797ddfda49434708e81e0.tar.bz2
aports-a03d5e0866e6a4baed3797ddfda49434708e81e0.tar.xz
main/perl-data-ical-doc: add missing make dependency and modernize
Diffstat (limited to 'main/perl-data-ical/APKBUILD')
-rw-r--r--main/perl-data-ical/APKBUILD25
1 files changed, 14 insertions, 11 deletions
diff --git a/main/perl-data-ical/APKBUILD b/main/perl-data-ical/APKBUILD
index 3974b5937e..d2d94f6f54 100644
--- a/main/perl-data-ical/APKBUILD
+++ b/main/perl-data-ical/APKBUILD
@@ -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"