diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-10-24 02:27:09 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-10-24 02:27:09 +0000 |
commit | e52c8f37a77731571ddbecb1acb84f692ae3a10c (patch) | |
tree | 2c298d27989cf82fe3231c8ab3a58a4e1e7067ab /community/perl-term-readpassword/APKBUILD | |
parent | e44dc42cb4a8b39f6d0f496b2ae0a9faa2d1d1d4 (diff) | |
download | aports-e52c8f37a77731571ddbecb1acb84f692ae3a10c.tar.bz2 aports-e52c8f37a77731571ddbecb1acb84f692ae3a10c.tar.xz |
community/perl-term-readpassword: new aport as dependency of perl-net-appliance-session
Diffstat (limited to 'community/perl-term-readpassword/APKBUILD')
-rw-r--r-- | community/perl-term-readpassword/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/community/perl-term-readpassword/APKBUILD b/community/perl-term-readpassword/APKBUILD new file mode 100644 index 0000000000..943f31682d --- /dev/null +++ b/community/perl-term-readpassword/APKBUILD @@ -0,0 +1,49 @@ +# Automatically generated by apkbuild-cpan, template 2 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-term-readpassword +_pkgreal=Term-ReadPassword +pkgver=0.11 +pkgrel=0 +pkgdesc="unknown" +url="http://search.cpan.org/dist/Term-ReadPassword/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="" +cpancheckdepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/P/PH/PHOENIX/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare + + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + export AUTOMATED_TESTING=1 + make test +} + +sha512sums="5aa5f858a67cbfba4daa231501c0e3009ce9df23bfd3448dcc23b6ff4dced31dcc1702bb244dd7fde31e3c51684933c58af3b6426261ba7614910f330f6f7de5 Term-ReadPassword-0.11.tar.gz" |