summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8ef7e661e6511ea2bcbc8a5d03eee4fa0f49bc9f (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
# Maintainer: Brian Bidulock <bidulock at openss7 dot org>

pkgname=perl-sys-fs
_cpanname=Sys-FS
pkgver=0.11
pkgrel=1
pkgdesc="Perl/CPAN Module Sys::FS - filesystem interaction tools"
arch=(any)
url="https://metacpan.org/release/$_cpanname"
license=(PerlArtistic)
options=('!emptydirs')
depends=(perl-log-tree perl-moose perl-namespace-autoclean perl-sys-run)
source=("http://cpan.metacpan.org/authors/id/T/TE/TEX/$_cpanname-$pkgver.tar.gz")
md5sums=('feea0f446f91e59c64c410b549814407')

build() {
	cd "$srcdir/$_cpanname-$pkgver"

	# install module in vendor directories
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}
package() {
	cd "$srcdir/$_cpanname-$pkgver"
	make install DESTDIR="$pkgdir/"

	#remove perllocal.pod and .packlist
	find "$pkgdir" -name perllocal.pod -delete
	find "$pkgdir" -name .packlist -delete
}