# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Francois Charette <firmicus@gmx.net>

pkgname=perl-text-iconv
pkgver=1.7
pkgrel=20
pkgdesc="Interface to iconv codeset conversion"
arch=('x86_64')
url="https://search.cpan.org/dist/Text-Iconv/"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=("https://www.cpan.org/authors/id/M/MP/MPIOTR/Text-Iconv-$pkgver.tar.gz") 
md5sums=('81b26e069eaebb084e91ea3c009b67ae')

build() {
  cd Text-Iconv-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Text-Iconv-$pkgver
  make test
}

package() {
  cd Text-Iconv-$pkgver
  make DESTDIR="$pkgdir" install
}
