1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 04:35:39 +03:00

testing/perl-module-build: new aport

This commit is contained in:
Francesco Colista 2012-10-29 13:31:59 +00:00
parent abf5795df0
commit bcc41b6b49

View file

@ -3,29 +3,30 @@
# Maintainer: Francesco Colista <francesco.colista@gmail.com> # Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-module-build pkgname=perl-module-build
_pkgreal=Module-Build _pkgreal=Module-Build
pkgver=0.3800 pkgver=0.4003
pkgrel=0 pkgrel=0
pkgdesc="Build and install Perl modules" pkgdesc="Build and install Perl modules"
url="http://search.cpan.org/dist/Module-Build/" url="http://search.cpan.org/dist/Module-Build/"
arch="noarch" arch="noarch"
license="GPL PerlArtistic" license="GPL PerlArtistic"
cpandepends="" cpandepends=""
cpanmakedepends="" cpanmakedepends=" "
depends="$cpandepends" depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends" makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_pkgreal-$pkgver.tar.gz" source="http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver" _builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
cd "$_builddir" cd "$_builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
perl Build.PL installdirs=vendor || return 1 perl Build.PL installdirs=vendor || return 1
} }
build() { build() {
cd "$_builddir" cd "$_builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
./Build && ./Build test ./Build && ./Build test
} }
@ -35,4 +36,4 @@ package() {
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
md5sums="b9e3085a2f314c2dea2274bd5ab16236 Module-Build-0.3800.tar.gz" md5sums="ed5fe7e023af43b0722639b13ece8d2d Module-Build-0.4003.tar.gz"