# Automatically generated by apkbuild-cpan, template 3
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-tickit-console
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Tickit-Console
pkgver=0.12
pkgrel=0
pkgdesc="Build full-screen console-style applications with Tickit"
url="https://metacpan.org/release/Tickit-Console/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="
	perl perl-tickit perl-tickit-widgets
	perl-tickit-widget-scroller perl-tickit-widget-tabbed
	perl-object-pad perl-string-tagged
	"
makedepends="perl-module-build"
checkdepends="perl-test-refcount perl-test2-suite"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Tickit-Console-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs=vendor
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
61da190698b07331b7afb24347b03552687d5fc20c5e1b9f43604691414a493f988eb6f9dc490a9f65cdd790f0a52688fb2eec6e8c7ce6551c94c32bddc7a568  Tickit-Console-0.12.tar.gz
"
