summaryrefslogtreecommitdiff
path: root/perl-module-refresh/PKGBUILD
blob: afc216f15b4a34b09267814dcbed9e5ed27c5e2f (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
# CPAN Name  : Module::Refresh
# Contributor: Daenyth
# Contributor: Anton Leontiev <bunder /at/ t-25.ru>
# Generator  : CPANPLUS::Dist::Arch 1.25
# Maintainer : Erich Eckner <arch at eckner dot net>

pkgname=perl-module-refresh
pkgver=0.17
pkgrel=12
_distdir="Module-Refresh-${pkgver}"
pkgdesc="Perl module to refresh %INC files when updated on disk"
arch=("any")
license=("GPL" "PerlArtistic")
url="http://search.cpan.org/dist/Module-Refresh"
options=(!emptydirs)
depends=(
  'perl>=5.38'
  'perl<5.39'
  'perl>=5.8.1')
makedepends=(
  'perl-extutils-makemaker>=6.42'
  'perl-file-temp>=0.19'
  'perl-path-class'
  'perl-test-simple'
  'perl-module-install')
checkdepends=("perl-path-class") # 'perl' provides 'perl-test-simple' and 'perl-file-temp'
source=("http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/${_distdir}.tar.gz")
sha512sums=('48bbcf14d5c6f13217b41c9a4683fd5ff492d3d33f8d6d50e89eae8a6336f306358e0070ecf1617d68c6eb9f91caaec6e1048e09b741d3fa0a19f6d38a75f17f')

build() {
  cd "${srcdir}/${_distdir}"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "${srcdir}/${_distdir}"
  make test
}

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