summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-encode-locale/PKGBUILD
blob: 05b129b009c1edc5495527d810bb01c55a2fca0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer : Justin "juster" Davis <jrcd83@gmail.com>
# Generator  : pbjam 0.01
# $Id: PKGBUILD 150524 2012-02-18 12:06:36Z allan $

pkgname=perl-encode-locale
pkgver=1.03
pkgrel=1
pkgdesc="Determine the locale encoding"
arch=(any)
license=(PerlArtistic GPL)
options=('!emptydirs')
depends=('perl>=5.008')
makedepends=()
checkdepends=()
conflicts=('perl-libwww<6')
url=http://search.cpan.org/dist/Encode-Locale
source=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Encode-Locale-1.02.tar.gz)
md5sums=('96a950ee9b57e47e2b990b4c5dd7bf6e')
sha512sums=('7263de267486c835f37dd51da573c5002921a8365124e03eeed1e7a97bac368fff42351d6d31e05d3e596f3486ca5506d985f3992652908948006701d21663cf')
_distdir="${srcdir}/Encode-Locale-1.02"

build() {
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
      PERL_AUTOINSTALL=--skipdeps                            \
      PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
      PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
      MODULEBUILDRC=/dev/null

    cd "$_distdir"
    /usr/bin/perl Makefile.PL
    make
  )
}

check() {
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
    cd "$_distdir"
    make test
  )
}

package() {
    cd "$_distdir"
    make DESTDIR="$pkgdir" install
    find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}

# Local Variables:
# mode: shell-script
# sh-basic-offset: 2
# End:
# vim:set ts=2 sw=2 et: