summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 82c040e74d864b6d136926834e34882e8258bd7d (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
# Maintainer: Florian Bruhin (The Compiler) <archlinux.org@the-compiler.org>

_dist=Env-Path
pkgname=perl-env-path
pkgver=0.19
pkgrel=2
pkgdesc="Perl module Env::Path - Advanced operations on path variables"
arch=(any)
license=('GPL' 'PerlArtistic')
url="http://search.cpan.org/~dsb/$_dist-$pkgver"
options=(!emptydirs)
depends=('perl')
source=("http://search.cpan.org/CPAN/authors/id/D/DS/DSB/$_dist-$pkgver.tar.gz")
sha1sums=('0c4677e6d6e03a0bfaab877ac74bce55a519f49c')

build() {
  cd "$_dist-$pkgver"
  unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
  /usr/bin/perl Makefile.PL
  make
}

package() {
  cd "$_dist-$pkgver"
  unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
  make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
}

check() {
  cd "$_dist-$pkgver"
  unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
  export PERL_MM_USE_DEFAULT=1
  make test
}

# vim:set ts=2 sw=2 et: