archrelease: copy trunk to extra-x86_64
[arch-packages.git] / perl-file-slurper / repos / extra-any / PKGBUILD
blob6729ac806aff297319f4c86503c56483823a790f
1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
3 pkgname=perl-file-slurper
4 _dist=File-Slurper
5 pkgver=0.013
6 pkgrel=1
7 pkgdesc="A simple, sane and efficient module to slurp a file"
8 arch=('any')
9 url="https://metacpan.org/release/${_dist}"
10 license=('PerlArtistic' 'GPL')
11 depends=('perl')
12 checkdepends=('perl-test-warnings')
13 options=('!emptydirs')
14 source=(https://search.cpan.org/CPAN/authors/id/L/LE/LEONT/${_dist}-${pkgver}.tar.gz)
15 sha256sums=('e2f6a4029a6a242d50054044f1fb86770b9b5cc4daeb1a967f91ffb42716a8c5')
17 build() {
18     cd "${srcdir}/${_dist}-${pkgver}"
19     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
20     export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
21     perl Makefile.PL
22     make
25 check() {
26     cd "${srcdir}/${_dist}-${pkgver}"
27     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
28     export PERL_MM_USE_DEFAULT=1
29     make test
32 package() {
33     cd "${srcdir}/${_dist}-${pkgver}"
34     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
35     make install INSTALLDIRS=vendor DESTDIR="$pkgdir"