# Automatically generated by apkbuild-cpan, template 2 # Contributor: Milan P. Stanić # Maintainer: Milan P. Stanić pkgname=perl-curses-ui _pkgreal=Curses-UI pkgver=0.9609 pkgrel=3 pkgdesc="A curses based OO user interface framework" url="https://metacpan.org/release/Curses-UI/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-term-readkey perl-curses" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/M/MD/MDXI/$_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 } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } sha512sums="b92bf34b3d6b9434b948bb8c4a490e4fca4f4edc7289fd5be9fddf4af68424b12ade9c9096ab6e9b292d1863522a1b743b0f68aabec745300092a3d59e43762a Curses-UI-0.9609.tar.gz"