diff options
-rw-r--r-- | main/perl-heap/APKBUILD | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/main/perl-heap/APKBUILD b/main/perl-heap/APKBUILD index ebeb6d92d0..12aa82a9ef 100644 --- a/main/perl-heap/APKBUILD +++ b/main/perl-heap/APKBUILD @@ -4,8 +4,8 @@ pkgname=perl-heap _pkgreal=Heap pkgver=0.80 -pkgrel=0 -pkgdesc="unknown" +pkgrel=1 +pkgdesc="Perl extensions for keeping data partially sorted" url="http://search.cpan.org/dist/Heap/" arch="noarch" license="GPL PerlArtistic" @@ -15,22 +15,28 @@ depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/J/JM/JMM/$_pkgreal-$pkgver.tar.gz" - -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + default_prepare + + cd "$builddir" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" - make && make test + cd "$builddir" + 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 } |