Name perl-locale-gettext
Description Permits access from Perl to the gettext() family of functions
Version 1.07-16
Package Base perl-locale-gettext
Homepage https://search.cpan.org/dist/Locale-gettext/
Maintainers ['Antonio Rojas <arojas@archlinux.org>', 'Giovanni Scafora <giovanni@archlinux.org>']
Contributors ['Mark Rosenstand <mark@borkware.net>', 'Paul Mattal <paul@archlinux.org>']
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/perl-locale-gettext
Sources ['https://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/Locale-gettext-1.07.tar.gz']
Dependencies ['gettext', 'perl']
Optional-Dependencies []
Build-Dependencies []
Provides []
Builddate 13-07-2025 23:28:16
Architecture x86_64
Distro-Version
Licenses ['GPL', 'PerlArtistic']
Hash 0ee04d51496140ad7d818a4729175a74481292dd05cbf5957589e4b7f98280b1
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Mark Rosenstand <mark@borkware.net>
# Contributor: Paul Mattal <paul@archlinux.org>

pkgname=perl-locale-gettext
_realname=Locale-gettext
pkgver=1.07
pkgrel=16
pkgdesc="Permits access from Perl to the gettext() family of functions"
arch=('x86_64')
license=('GPL' 'PerlArtistic')
url="https://search.cpan.org/dist/${_realname}/"
depends=('gettext' 'perl')
options=(!emptydirs)
source=("https://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/${_realname}-${pkgver}.tar.gz")
sha256sums=('909d47954697e7c04218f972915b787bd1244d75e3bd01620bc167d5bbc49c15')

build() {
  cd "${srcdir}/${_realname}-${pkgver}"

  # install module in vendor directories.
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "${srcdir}/${_realname}-${pkgver}"

  LANG=en_US.UTF-8 make test
}

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make install DESTDIR="${pkgdir}"

}