diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/perl-cgi-psgi/APKBUILD | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/main/perl-cgi-psgi/APKBUILD b/main/perl-cgi-psgi/APKBUILD index a1c2d32e2a..c0ca5ced68 100644 --- a/main/perl-cgi-psgi/APKBUILD +++ b/main/perl-cgi-psgi/APKBUILD @@ -4,33 +4,36 @@ pkgname=perl-cgi-psgi _pkgreal=CGI-PSGI pkgver=0.15 -pkgrel=0 +pkgrel=1 pkgdesc="Adapt CGI.pm to the PSGI protocol" url="http://search.cpan.org/dist/CGI-PSGI/" arch="noarch" license="GPL PerlArtistic" -cpandepends="" -cpanmakedepends="" depends="$cpandepends perl-cgi" -makedepends="perl-dev $cpanmakedepends" +makedepends="perl-dev $cpanmakedepends perl-module-install" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + 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 } |