summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 845fab12a15abd4a02ce7dac748cdc77f005b50a (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
# This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
# Maintainer: Jozef Riha <jose1711 at gmail dot com>

pkgname=perl-file-path
_cpanname=File-Path
pkgver=2.09
pkgrel=1
pkgdesc="File path and name utilities"
arch=('any')
url="http://search.cpan.org/~DLAND/${_cpanname}"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/D/DL/DLAND/${_cpanname}-${pkgver}.tar.gz) 
md5sums=('423f5ead2727be5270f08a39df53be6c')

build() {
  cd $srcdir/${_cpanname}-${pkgver}
  sed -i '/^auto_install/d' Makefile.PL
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

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