summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-file-slurp/PKGBUILD
blob: 1db97f1684dba49fdcf3fb338102ebbd8aa381ad (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
# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
# Contributor: François Charette <firmicus ατ gmx δοτ net>

pkgname=perl-file-slurp
pkgver=9999.19
pkgrel=4
pkgdesc="Read/write/append files quickly"
arch=('any')
url="http://search.cpan.org/dist/File-Slurp"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.14.0')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/U/UR/URI/File-Slurp-$pkgver.tar.gz)
sha256sums=('ce29ebe995097ebd6e9bc03284714cdfa0c46dc94f6b14a56980747ea3253643')

build() {
  cd  "$srcdir"/File-Slurp-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/File-Slurp-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}