# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=perl-font-ttf
pkgver=1.06
pkgrel=2
_pkgreal=Font-TTF
pkgdesc="perl module for TrueType font hacking"
url="https://metacpan.org/pod/Font::TTF"
arch="all"
license="Artistic License 2.0"
depends="perl perl-io-string"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/B/BH/BHALLISSY/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

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

sha512sums="2995544511e4cf9b1aa9a900b2272bf63a137fbbb752f2501d66c057b8272f7eb6f84326ed6121ffcbeb210f8f38b9219f59420a5a4b6664ce07aecc758ea029  Font-TTF-1.06.tar.gz"
