# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-config-general
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Config-General
pkgver=2.65
pkgrel=3
pkgdesc="Parse config files in Apache-inspired format"
url="https://metacpan.org/release/Config-General/"
arch="noarch"
license="Artistic-2.0"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TL/TLINDEN/Config-General-$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="
67e0a4a028ed43bff992491afbfa0dede4ab4e2ccec87e2c1f6f62c3a29ae9699a302671f9debe41b0aebc5245fb8332ed14d076c262ec572e5aafbe5ff513f4  Config-General-2.65.tar.gz
"
