1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Caleb Cushing <xenoterracide@gmail.com>
4 pkgname=perl-file-sharedir
5 _realname=File-ShareDir
8 pkgdesc="Locate per-dist and per-module shared files"
10 license=(PerlArtistic GPL)
11 depends=(perl-class-inspector)
12 url="https://metacpan.org/dist/$_realname"
13 options=('!emptydirs')
15 source=("https://cpan.metacpan.org/authors/id/${_author::1}/${_author::2}/${_author}/$_realname-$pkgver.tar.gz")
16 sha256sums=('3bb2a20ba35df958dc0a4f2306fc05d903d8b8c4de3c8beefce17739d281c958')
20 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
26 make DESTDIR="$pkgdir" install