summaryrefslogtreecommitdiff
path: root/perl-file-sharedir-install/PKGBUILD
blob: c65d0f4c51abc835e559f61444f563d66037edd0 (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
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor:Jason St. John <jstjohn .. purdue . edu>
# Contributor: AUR Perl <aurperl@juster.info>

_perlmod=File-ShareDir-Install
pkgname=perl-file-sharedir-install
pkgver=0.11
pkgrel='3'
pkgdesc="File::ShareDir::Install - Install read-only data files from a distribution"
arch=('any')
url="http://search.cpan.org/dist/${_perlmod}"
license=('GPL' 'PerlArtistic')
depends=(
  'perl>=5.8.0'
  'perl-carp'
  'perl-exporter'
  'perl-io'
  'perl-pathtools')
makedepends=(
  'perl-extutils-makemaker'
  'perl-file-path'
  'perl-module-build-tiny>=0.034'
  'perl-module-metadata'
  'perl-test-simple')
checkdepends=('perl-test-pod' 'perl-test-pod-coverage')
options=('!emptydirs')
_distdir="${_perlmod}-${pkgver}"
source=("http://cpan.org/modules/by-module/${_perlmod%%-*}/${_distdir}.tar.gz")
sha512sums=('6611f6c3221ec52db7582f30b2159dba22ca8d899666526c069298b3350ced9e3b46872baaceb30f7a27e3c744c929ca4967fa820d14bbfdb41e5ed5485a9f72')

build() {
	cd "${_distdir}"

	# Install module in vendor directories.
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

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

package() {
	cd "${_distdir}"
	make install DESTDIR="${pkgdir}"
}