makedepends=(gettext perl)
run=(perl)

description="Permits access from Perl to the gettext() family of functions"
url="http://search.cpan.org/dist/gettext/"

packager="Grat-OS Team"
maintainer="Grat-OS Team"

name=perl-locale-gettext
version=1.07
release=6

source=(http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/gettext-$version.tar.gz)

build() {
  cd Locale-gettext-$version

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL

  make OPTIMIZE="$CFLAGS" 
  make install INSTALLDIRS=vendor DESTDIR=$PKG

  # Remove perllocal.pod and .packlist if present in the package
  for i in perllocal.pod .packlist; do
      find $PKG -name "$i" -exec rm -rf {} \;
  done
}
