Commit b7db7261 authored by Roberto Oliveira's avatar Roberto Oliveira

testing/perl-net-irr: modernize and add check

parent ba4a729f
......@@ -4,33 +4,37 @@
pkgname=perl-net-irr
_pkgreal=Net-IRR
pkgver=0.08
pkgrel=0
pkgrel=1
pkgdesc="Perl interface to the Internet Route Registry daemon"
url="http://search.cpan.org/dist/Net-IRR/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev cairo-dev $cpanmakedepends"
makedepends="perl-dev cairo-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TC/TCAINE/$_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"
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
}
......
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