summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 08fb6ca5ea91d3a712e908dcb6d1b77d1d7e76fb (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
# Contributor: Swift Geek <swiftgeek «at» gmail.com>
pkgname=perl-extutils-makemaker-aur
pkgver=7.64
pkgrel=1
pkgdesc="ExtUtils::MakeMaker - Create a module Makefile"
arch=('any')
url="https://metacpan.org/release/ExtUtils-MakeMaker/"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0')
makedepends=()
provides=(perl-extutils-makemaker=${pkgver})
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=("http://www.cpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-${pkgver}.tar.gz")
md5sums=('5c417a5ff2236c0ee7ab3412c4575ad8')
_src_dir='$srcdir/ExtUtils-MakeMaker-$pkgver'

build() {
  # Setting these env variables overwrites any command-line-options we don't want...
  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
    PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
    PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
    MODULEBUILDRC=/dev/null
  eval cd "$_src_dir"
  /usr/bin/perl Makefile.PL
  make
}

check () {
  eval cd "$_src_dir"
  make test
}

package () {
  eval cd "$_src_dir"
  make install

  # remove perllocal.pod and .packlist
  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}