diff options
Diffstat (limited to 'community/perl-extutils-libbuilder/APKBUILD')
-rw-r--r-- | community/perl-extutils-libbuilder/APKBUILD | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/community/perl-extutils-libbuilder/APKBUILD b/community/perl-extutils-libbuilder/APKBUILD index f2d806468d..70ba7c51f0 100644 --- a/community/perl-extutils-libbuilder/APKBUILD +++ b/community/perl-extutils-libbuilder/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-extutils-libbuilder _pkgreal=ExtUtils-LibBuilder pkgver=0.08 -pkgrel=0 +pkgrel=1 pkgdesc="Perl module for ExtUtils-LibBuilder" url="http://search.cpan.org/dist/ExtUtils-LibBuilder/" arch="noarch" @@ -18,28 +18,32 @@ source="http://search.cpan.org/CPAN/authors/id/A/AM/AMBS/$_pkgreal-$pkgver.tar.g builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - default_prepare || return 1 + default_prepare + cd "$builddir" if [ -e Build.PL ]; then - perl Build.PL installdirs=vendor || return 1 + perl Build.PL installdirs=vendor else - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor fi } build() { cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - ./Build && perl ./Build test + ./Build +} + +check() { + cd "$builddir" + ./Build test } package() { cd "$builddir" - ./Build install destdir="$pkgdir" || return 1 + ./Build install destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="8ffe9e9a3c2f916f40dc4f6aed237d33 ExtUtils-LibBuilder-0.08.tar.gz" -sha256sums="c51171e06de53039f0bca1d97a6471ec37941ff59e8a3d1cb170ebdd2573b5d2 ExtUtils-LibBuilder-0.08.tar.gz" sha512sums="c9cb95ff9ce3d30163e3e6e76adc03e164bddcef1fa58a068f6fc41e4be7289f06712457fba341244e6d37ec5976912920d44ac02ff6c9a2cde368b102e5133e ExtUtils-LibBuilder-0.08.tar.gz" |