# Maintainer: Jesus E. pkgname=perl-io-string pkgver=1.08 pkgrel=10 pkgdesc="IO::File interface for in-core strings" arch=(i686 x86_64) url='https://search.cpan.org/dist/IO-String' license=(GPL-1) depends=(perl) options=(!emptydirs) source=(https://www.cpan.org/authors/id/G/GA/GAAS/IO-String-$pkgver.tar.gz COPYING) sha512sums=('0aae1711a2bad2a239d90ca7ceb685938e509dbefb05d6c6717796a04ce1956006f67a7a203eaa9d9718b77b5cea9b7d493091b88d9542068f0829aae3a37376' 'e239b539f2c46c1ae3da87c4983a0fda67dc8ae622d607b507b5c523af3bdf99e7bea8931e3a7c6007910bfe9e21a761e03e8203de95b5aceea425a97d0a84c9') build() { cd IO-String-$pkgver PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } package() { cd IO-String-$pkgver make install DESTDIR=$pkgdir find "$pkgdir" -name '.packlist' -delete find "$pkgdir" -name '*.pod' -delete install -Dm644 ../COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING }