# Automatically generated by apkbuild-cpan, template 3
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-tie-handle-offset
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Tie-Handle-Offset
pkgver=0.004
pkgrel=0
pkgdesc="Tied handle that hides the beginning of a file"
url="https://metacpan.org/release/Tie-Handle-Offset/"
arch="noarch"
license="Apache-2.0"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Tie-Handle-Offset-$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
	make
}

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

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

sha512sums="
d7f5e2335bb4ac4bb0fdf700e54d33747cc0e718e0bdf012086b565dcde7652ec4dbf065dfd8651ab0574555d506960482028c1cc83c9edc40da9d999ae8e221  Tie-Handle-Offset-0.004.tar.gz
"
