# Automatically generated by apkbuild-cpan, template 1 # Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-getopt-long _pkgreal=Getopt-Long pkgver=2.42 pkgrel=0 pkgdesc="Module to handle parsing command line options" url="http://search.cpan.org/dist/Getopt-Long/" arch="noarch" license="GPL PerlArtistic" cpandepends="" cpanmakedepends=" " depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/J/JV/JV/$_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 && make test } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } md5sums="e68841745aee1bdd7d9b23ba71563128 Getopt-Long-2.42.tar.gz" sha256sums="27d756041f7c37b023ab9be7708f666ad1b07a4c9462a46905bd4bd0ebbe8589 Getopt-Long-2.42.tar.gz" sha512sums="00944cb0b69c05fc273ed7c22287eff678f00d620c0e4c35b62da4ec184333a344161fde1538e7dad77e6536f28ef75a25a8afbf1cbc4d1ddf2a8818a23b021a Getopt-Long-2.42.tar.gz"