# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-gettext
pkgver=0.01
pkgrel=10
pkgdesc="Perl/CPAN Module Gettext"
arch=('any')
url="https://search.cpan.org/~jbriggs/Gettext/"
license=("GPL" "PerlArtistic")
options=(!emptydirs)
source=("https://www.cpan.org/authors/id/J/JB/JBRIGGS/Gettext-0.01.tar.gz")
sha256sums=('6048556e8e3ec7a5f4842f87a6cb8a4851264264eb9a8d5432144f63bfdc94f5')

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

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