# Maintainer: Developer <dev@opalos.org>
# Maintainer: Developer <dev@opalos.org>

pkgname=perl-encode-locale
pkgver=%version%
pkgrel=%release%
pkgdesc="Determine the locale encoding"
arch=('any')
url="https://search.cpan.org/dist/Encode-Locale"
license=('PerlArtistic' 'GPL')
depends=('perl')
options=('!emptydirs')
source=(https://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Encode-Locale-$pkgver.tar.gz)
sha256sums=('176fa02771f542a4efb1dbc2a4c928e8f4391bf4078473bd6040d8f11adb0ec1')

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

check() {
  cd Encode-Locale-$pkgver
  make test
}

package() {
  cd Encode-Locale-$pkgver
  make DESTDIR="$pkgdir" install
}
