diff options
-rw-r--r-- | system/perl-extutils-installpaths/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/system/perl-extutils-installpaths/APKBUILD b/system/perl-extutils-installpaths/APKBUILD new file mode 100644 index 000000000..459c61276 --- /dev/null +++ b/system/perl-extutils-installpaths/APKBUILD @@ -0,0 +1,43 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-extutils-installpaths +_pkgreal=ExtUtils-InstallPaths +pkgver=0.012 +pkgrel=0 +pkgdesc="Build.PL install path logic made easy" +url="http://search.cpan.org/dist/ExtUtils-InstallPaths/" +arch="noarch" +license="GPL-2.0-only OR Artistic-1.0-Perl" +cpandepends="perl-extutils-config" +cpanmakedepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="92a4e9ebb387d330ae67b0716b96b27165d08503d2915d8301b3a6aa185f962940e761d21fd400033e6a814e276918e0662da3740ca2852a53cf0fe54f3d7660 ExtUtils-InstallPaths-0.012.tar.gz" |