# Maintainer: Adélie Perl Team pkgname=perl-io-stringy _pkgreal=IO-Stringy _author=CAPOEIRAB _au=${_author%%"${_author#??}"} _a=${_author%%"${_author#?}"} pkgver=2.112 pkgrel=0 pkgdesc="I/O on in-core objects like strings and arrays" url="https://metacpan.org/release/IO-stringy" arch="noarch" license="GPL-1.0+ OR Artistic-1.0-Perl" depends="perl" makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" build() { export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` 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="49ca81f4c96dcac9f1eda0a226b84cc70964f8a917e41980d4faa611d42716c509fa24ff282ca731f9aa42285bff9195b7b9ba8fd732f2aac7761282c61f2601 IO-Stringy-2.112.tar.gz"