# Automatically generated by apkbuild-cpan, template 4
# Contributor: Andreas Schipplock <andreas@schipplock.de>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-config-properties
pkgver=1.80
pkgrel=4
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Config-Properties
pkgdesc="Read and write property files"
url="https://metacpan.org/release/Config-Properties/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SA/SALVA/Config-Properties-$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="
2a3512aebeae2a95815dcd4cb84476919cf1aee5d5e8d93916d64ade3d49adc0720808487bba80664ccb978914b275f163cecbd5080075fd1f8f4d37697610bb  Config-Properties-1.80.tar.gz
"
