# Automatically generated by apkbuild-cpan, template 2 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-term-readpassword _pkgreal=Term-ReadPassword pkgver=0.11 pkgrel=4 pkgdesc="Perl module to ask the user for a password" url="https://metacpan.org/release/Term-ReadPassword/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/P/PH/PHOENIX/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { default_prepare export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor } build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export AUTOMATED_TESTING=1 make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums=" 5aa5f858a67cbfba4daa231501c0e3009ce9df23bfd3448dcc23b6ff4dced31dcc1702bb244dd7fde31e3c51684933c58af3b6426261ba7614910f330f6f7de5 Term-ReadPassword-0.11.tar.gz "