# Automatically generated by apkbuild-cpan, template 3
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-tickit-widget-tabbed
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Tickit-Widget-Tabbed
pkgver=0.028
pkgrel=0
pkgdesc="Basic tabbed window support for Tickit"
url="https://metacpan.org/release/Tickit-Widget-Tabbed/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-object-pad perl-tickit-widgets"
checkdepends="perl-test-identity perl-test-refcount"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Tickit-Widget-Tabbed-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

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

sha512sums="
dd0f8735b35e17155b0523f975c75bacd7869a6de0aa83475ba13493941d23ff64bd257c8e35dad89f89c29198ec08a007ff675bcb339a3db70d5dfd2ad1b42f  Tickit-Widget-Tabbed-0.028.tar.gz
"
