Skip to content
Snippets Groups Projects
Commit bbf8eeea authored by Roberto Oliveira's avatar Roberto Oliveira Committed by Jakub Jirutka
Browse files

main/perl-heap: modernize and add project description

parent 157e32f0
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment