# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-sub-name _pkgreal=Sub-Name pkgver=0.21 pkgrel=3 pkgdesc="(re)name a sub" url="http://search.cpan.org/dist/Sub-Name/" arch="all" license="GPL PerlArtistic" cpandepends="" cpanmakedepends=" perl-devel-checkbin " 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" 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="7e7a181e30b3249d0b81585f55e36621 Sub-Name-0.21.tar.gz" sha256sums="bd32e9dee07047c10ae474c9f17d458b6e9885a6db69474c7a494ccc34c27117 Sub-Name-0.21.tar.gz" sha512sums="94be57b569f6c434ec3ef4fdff1a9d946067cf6c7ee58f716f4bc188764ee103f9a2579ee0ddf4068ec6889c186d9d447d8252a5dd2a0e882719239ac1102294 Sub-Name-0.21.tar.gz"