# $Id: PKGBUILD 228957 2015-01-13 10:04:31Z fyan $
# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=perl-encode-locale
pkgver=1.04
pkgrel=1
pkgdesc="Determine the locale encoding"
arch=('any')
url="http://search.cpan.org/dist/Encode-Locale"
license=('PerlArtistic' 'GPL')
depends=('perl')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Encode-Locale-$pkgver.tar.gz)
sha1sums=('1f525d437d0cfc18443aaa29597b14ceaeb240c2')

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
}
