archrelease: copy trunk to extra-x86_64
[arch-packages.git] / perl-mime-charset / trunk / PKGBUILD
blob27e729dd91697b86a9aff60b03a2f9c562e22c49
1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
2 # Contributor: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com>
3 # Generator  : CPANPLUS::Dist::Arch 1.32
5 pkgname='perl-mime-charset'
6 _dist="MIME-Charset"
7 pkgver='1.013.1'
8 pkgrel=1
9 pkgdesc="Charset Information for MIME"
10 arch=('any')
11 license=('PerlArtistic' 'GPL')
12 options=('!emptydirs')
13 depends=('perl')
14 checkdepends=('perl-test-pod')
15 url='https://metacpan.org/release/MIME-Charset'
16 source=("https://search.cpan.org/CPAN/authors/id/N/NE/NEZUMI/${_dist}-${pkgver}.tar.gz")
17 md5sums=('b1932cfc806c8deb1b4a20d6afbfa8ac')
18 sha256sums=('1bb7a6e0c0d251f23d6e60bf84c9adefc5b74eec58475bfee4d39107e60870f0')
20 build() {
21     cd "${srcdir}/${_dist}-${pkgver}"
22     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
23     export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
24     perl Makefile.PL
25     make
28 check() {
29     cd "${srcdir}/${_dist}-${pkgver}"
30     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
31     export PERL_MM_USE_DEFAULT=1
32     make test
35 package() {
36     cd "${srcdir}/${_dist}-${pkgver}"
37     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
38     make install INSTALLDIRS=vendor DESTDIR="$pkgdir"