# Automatically generated by apkbuild-cpan, template 2 # Contributor: Milan P. Stanić # Maintainer: Milan P. Stanić pkgname=perl-curses _pkgreal=Curses pkgver=1.44 pkgrel=1 pkgdesc="terminal screen handling and optimization" url="https://metacpan.org/release/Curses/" arch="all" license="GPL-1.0-only" makedepends="perl-dev ncurses-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/G/GI/GIRAFFED/$_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=" 2c7f9ad9971c1afe6c1bee59581466f848ab1128e546effccd2118cb7bce1962ec7f6a8da60be3cdd1405f6b0a44f7c29c5f7900cbc436940592b1075fbfb6f7 Curses-1.44.tar.gz "