diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-11 11:27:20 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2017-11-13 09:08:07 +0000 |
commit | a4710e3cf00196ad2a4a6d0c24038a1ec58ba775 (patch) | |
tree | 21ce6061bff2a07eaf374c7aceb4c5bcf1933719 /main | |
parent | 58f0c131a333124a60109156cfa23e4e95cf2512 (diff) | |
download | aports-a4710e3cf00196ad2a4a6d0c24038a1ec58ba775.tar.bz2 aports-a4710e3cf00196ad2a4a6d0c24038a1ec58ba775.tar.xz |
main/perl-cgi-psgi: add missing make dependency and modernize
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 } |