aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-29 12:04:57 +0000
committerJakub Jirutka <jakub@jirutka.cz>2017-11-29 22:11:01 +0100
commitbbf8eeea84969a531fe38d03574977d317ea1049 (patch)
treecbedf0e157b8797ef737fab9c9bd7aa27ec92c2c
parent157e32f08cef364462c1283c7a20d8451e4731aa (diff)
downloadaports-bbf8eeea84969a531fe38d03574977d317ea1049.tar.bz2
aports-bbf8eeea84969a531fe38d03574977d317ea1049.tar.xz
main/perl-heap: modernize and add project description
-rw-r--r--main/perl-heap/APKBUILD24
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
}