aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
Diffstat (limited to 'community')
-rw-r--r--community/perl-term-readpassword/APKBUILD49
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"