# Automatically generated by apkbuild-cpan, template 4
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-app-cpm
pkgver=0.997017
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=App-cpm
pkgdesc="Fast CPAN module installer"
url="https://metacpan.org/release/App-cpm/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="
	perl perl-parallel-pipes perl-module-cpmfile
	perl-extutils-installpaths perl-module-cpanfile
	perl-command-runner perl-file-copy-recursive
	perl-proc-forksafe perl-cpan-02packages-search
	perl-http-tinyish perl-io-socket-ssl perl-file-pushd
	perl-menlo-legacy perl-parse-pmfile perl-local-lib
	perl-cpan-distnameinfo
	"
makedepends="perl-module-build-tiny"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SK/SKAJI/App-cpm-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL \
		--installdirs=vendor \
		--create_packlist=0
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
}

sha512sums="
819fdf2e49131ea8c76fcb69737263525dc71ddc9c26afa60dc1e2e8cb20778e3f92f3c2fd021efc4c6ea1d3e1540aa6b17266bb9dea0fcf2a98b9051063d6d8  App-cpm-0.997017.tar.gz
"
