# Automatically generated by apkbuild-cpan, template 4
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-file-sharedir-tiny
pkgver=0.001
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=File-ShareDir-Tiny
pkgdesc="Locate per-dist and per-module shared files"
url="https://metacpan.org/release/File-ShareDir-Tiny/"
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/L/LE/LEONT/File-ShareDir-Tiny-$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="
0e9a58d60a9135d35b6edefcbb54335329837a6f4bd1f3666e7a86ba5a2e683d9091759aabcfcf56ccb8fd423391e2d56d1d47daffd4ffd10253ddadee4b525b  File-ShareDir-Tiny-0.001.tar.gz
"
