Subject: [alpine-aports] [PATCH] testing/perl-curses-ui: new aport

From: Milan P. Stanić <[email-masked]>
Date: Wed, 12 Dec 2018 11:50:21 +0100

---
 testing/perl-curses-ui/APKBUILD | 48 +++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 testing/perl-curses-ui/APKBUILD

diff --git a/testing/perl-curses-ui/APKBUILD b/testing/perl-curses-ui/APKBUILD
new file mode 100644
index 0000000000..93180e2774
--- /dev/null
+++ b/testing/perl-curses-ui/APKBUILD
@@ -0,0 +1,48 @@
+# Automatically generated by apkbuild-cpan, template 2
+# Contributor: Milan P. Stanić <[email-masked]>
+# Maintainer: Milan P. Stanić <[email-masked]>
+pkgname=perl-curses-ui
+_pkgreal=Curses-UI
+pkgver=0.9609
+pkgrel=0
+pkgdesc="A curses based OO user interface framework"
+url="http://search.cpan.org/dist/Curses-UI/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-term-readkey perl-curses"
+cpanmakedepends=""
+cpancheckdepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/M/MD/MDXI/$_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}')
+	make test
+}
+
+sha512sums="b92bf34b3d6b9434b948bb8c4a490e4fca4f4edc7289fd5be9fddf4af68424b12ade9c9096ab6e9b292d1863522a1b743b0f68aabec745300092a3d59e43762a  Curses-UI-0.9609.tar.gz"
-- 
2.18.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---