aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/perl-module-install/APKBUILD29
1 files changed, 13 insertions, 16 deletions
diff --git a/community/perl-module-install/APKBUILD b/community/perl-module-install/APKBUILD
index 366e300c01..4ff632968a 100644
--- a/community/perl-module-install/APKBUILD
+++ b/community/perl-module-install/APKBUILD
@@ -2,42 +2,39 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-module-install
_pkgreal=Module-Install
-pkgver=1.17
+pkgver=1.18
pkgrel=0
pkgdesc="Perl module for Module-Install"
url="http://search.cpan.org/dist/Module-Install/"
arch="noarch"
license="GPL PerlArtistic"
-cpandepends=""
cpanmakedepends="perl-file-remove perl-module-build perl-module-scandeps perl-yaml-tiny"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+check() {
+ cd "$builddir"
+ make test
+}
prepare() {
- cd "$_builddir"
- if [ -e Build.PL ]; then
- perl Build.PL installdirs=vendor || return 1
- else
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- fi
+ cd "$builddir"
+ 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
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="39da11e45b32f79f66823015d3be4153 Module-Install-1.17.tar.gz"
-sha256sums="bc1365cf447fc8e09ef002f68e0a2ac3ace071ebf412c94a2cd08ddae6e17065 Module-Install-1.17.tar.gz"
-sha512sums="e7f71ece28518d490aa9f038f24e88c81722239bb065a56e0414013646940d7326838579347d030a30b6e3a3d7810f7432d0c2a27560147bc4545e6884c27f91 Module-Install-1.17.tar.gz"
+sha512sums="2126d35c9bab151548551629e6a470f9a7b90fd901f32cdc15e9aa83b931178f99e28e2de32ce7b8a677d187474efc428839d7e7254074f26fcfcfe18fa297a9 Module-Install-1.18.tar.gz"