# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-convert-binhex
_pkgreal=Convert-BinHex
pkgver=1.125
pkgrel=7
pkgdesc="Extract data from Macintosh BinHex files"
url="https://metacpan.org/release/Convert-BinHex/"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0-or-later"
depends="perl"
checkdepends="perl-file-slurp perl-test-most"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/ST/STEPHEN/Convert-BinHex-$pkgver.tar.gz"
options="!check" # checkdepends in community/
builddir="$srcdir/$_pkgreal-$pkgver"

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

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete
}

sha512sums="
c088feb0d9dd2c56d79e4fe21494e5957f763bfb4afbd0335ba099f4babbc7790951897730faf097d61ebca4a262f6676a9532d8861c2deca5a6d61ffdd6f115  Convert-BinHex-1.125.tar.gz
"
