# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-lingua-translit
_pkgreal=Lingua-Translit
pkgver=0.29
pkgrel=1
pkgdesc="transliterates text between writing systems"
url="https://metacpan.org/release/Lingua-Translit/"
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/A/AL/ALINKE/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

check() {
	make test
}

prepare() {
	default_prepare
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

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

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
96c17e2fb62a6f2240a43181c7b83ffc51b21e80bcaa0d3900991c7a49f3b63f1b8a6fa7ee720a666061d459cd4985ab66acfbbdb5110b9d0bb41bd1924aa671  Lingua-Translit-0.29.tar.gz
"
