summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c76600dc86635f34c65b5ee0962287de718b8701 (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
# Contributor: Ordoban <dirk-langer@vvovgonik.de>
# Generator  : CPANPLUS::Dist::Arch 1.32

pkgname='perl-file-pathlist'
pkgver='1.04'
pkgrel='1'
pkgdesc="Find a file within a set of paths (like @INC or Java classpaths)"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl-params-util>=0.24' 'perl>=5.005')
makedepends=()
url='https://metacpan.org/release/File-PathList'
source=("https://cpan.metacpan.org/authors/id/A/AD/ADAMK/File-PathList-$pkgver.tar.gz")
md5sums=('4559e3b29a04471ea3d36a5779d3b70a')
sha512sums=('6b462a0ce9b04bc74c6bdd6603b88177e57b24b5221c18aa6e6d83dd3de516734131dd90cc81e67f783dae45fbfa0f6e0896a2752aff3a9ddbc792e491328f81')
_distdir="File-PathList-$pkgver"

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 "$srcdir/$_distdir"
  /usr/bin/perl Makefile.PL
  make
}

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

package() {
  cd "$srcdir/$_distdir"
  make 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: