summaryrefslogtreecommitdiff
path: root/perl-module-refresh/PKGBUILD
blob: f08cb2418add7f115aa30458eb11f1a8cb1223ad (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
# 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=1
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")
checkdepends=("perl-path-class") # 'perl' provides 'perl-test-simple' and 'perl-file-temp'
source=("http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/Module-Refresh-${pkgver}.tar.gz")
sha512sums=('48bbcf14d5c6f13217b41c9a4683fd5ff492d3d33f8d6d50e89eae8a6336f306358e0070ecf1617d68c6eb9f91caaec6e1048e09b741d3fa0a19f6d38a75f17f')

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

check() {
  cd "$srcdir/Module-Refresh-${pkgver}"
  make test
}

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