Commit ca735788 authored by Roberto Oliveira's avatar Roberto Oliveira

community/perl-par: modernize and add check

parent cd8e9412
......@@ -3,27 +3,31 @@
pkgname=perl-par
_pkgname=PAR
pkgver=1.015
pkgrel=0
pkgrel=1
pkgdesc="Perl Archive Toolkit"
url="http://search.cpan.org/dist/$_pkgname/"
arch="noarch"
license="GPL PerlArtistic"
depends="perl perl-archive-zip perl-par-dist"
makedepends="perl-dev"
options="!check"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
......
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