# Automatically generated by apkbuild-cpan, template 3
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-protocol-irc
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Protocol-IRC
pkgver=0.13
pkgrel=0
pkgdesc="IRC protocol handling"
url="https://metacpan.org/release/Protocol-IRC/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-module-build"
checkdepends="perl-future perl-test-fatal"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Protocol-IRC-$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="
20ee02199bee056c3b6ee5351aa13594c78c8fedcda37c19d9a545e5d487bdc1212c7c8866d83f888e17ec84a43fc6eefbf2008664993b900dcc8f2c9fea344e  Protocol-IRC-0.13.tar.gz
"
