# Automatically generated by apkbuild-cpan, template 4
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=perl-pod-spell
pkgver=1.27
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Pod-Spell
pkgdesc="a formatter for spellchecking Pod"
url="https://metacpan.org/release/Pod-Spell/"
arch="noarch"
license="Artistic-2.0"
depends="perl perl-class-tiny perl-file-sharedir perl-lingua-en-inflect"
makedepends="perl-file-sharedir-install"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/H/HA/HAARG/Pod-Spell-$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 \
		NO_PACKLIST=1 \
		NO_PERLLOCAL=1
	make
}

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

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
d4737d977220205dd2f74ea0d1ff02214ae66e7f772e978a97f17c3219478be547168fd7452e447f5e6efb24006d0b8427c846b7060649d3857f57cce2d917eb  Pod-Spell-1.27.tar.gz
"
