# Maintainer: atom2013 <atom.long@hotmail.com>

_perlmod='IO-String'
pkgname="perl-${_perlmod}"
pkgver=1.08
pkgrel=9
pkgdesc="${_perlmod//-/::} - interface for in-core strings"
arch=('i686' 'x86_64')
url="https://metacpan.org/release/IO-String"
license=('GPL' 'PerlArtistic')
groups=('perl-modules')
depends=('perl>=5.10.0')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/G/GA/GAAS/${_perlmod}-$pkgver.tar.gz)
sha256sums=('2a3f4ad8442d9070780e58ef43722d19d1ee21a803bf7c8206877a10482de5a0')

build() {
  cd  "$srcdir"/IO-String-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/IO-String-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
