diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-11 12:11:12 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2017-11-13 09:08:07 +0000 |
commit | 535882eaed2f8429aa6fb7c01d20cac299c2f5c6 (patch) | |
tree | 6571b227aa9e79a164ba99cdb6efa2717a1b3aab /main/perl-module-refresh | |
parent | ac33ca9b180ee6c0a45078496d32b1413dbe80fa (diff) | |
download | aports-535882eaed2f8429aa6fb7c01d20cac299c2f5c6.tar.bz2 aports-535882eaed2f8429aa6fb7c01d20cac299c2f5c6.tar.xz |
main/perl-module-refresh: add missing make dependency and modernize
Diffstat (limited to 'main/perl-module-refresh')
-rw-r--r-- | main/perl-module-refresh/APKBUILD | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/main/perl-module-refresh/APKBUILD b/main/perl-module-refresh/APKBUILD index 943379e3e0..b624374093 100644 --- a/main/perl-module-refresh/APKBUILD +++ b/main/perl-module-refresh/APKBUILD @@ -4,35 +4,42 @@ pkgname=perl-module-refresh _pkgreal=Module-Refresh pkgver=0.17 -pkgrel=0 +pkgrel=1 pkgdesc="Refresh %INC files when updated on disk" url="http://search.cpan.org/dist/Module-Refresh/" arch="noarch" license="GPL PerlArtistic" cpandepends="" -cpanmakedepends="perl-path-class " +cpanmakedepends="perl-path-class" depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" +makedepends="perl-dev $cpanmakedepends perl-module-install" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + default_prepare + + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - make && make test + 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 } |