diff options
author | Brian Bidulock | 2015-06-10 10:53:56 -0600 |
---|---|---|
committer | Brian Bidulock | 2015-06-10 10:53:56 -0600 |
commit | f805199af2e5d2273a7c4d1f9c711619ffa5abe9 (patch) | |
tree | b1e8ec2d7851bb588a28936b49d77f443c49f8eb /PKGBUILD | |
download | aur-perl-file-blarf.tar.gz |
initial version
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7686760c6d6d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Brian Bidulock <bidulock at openss7 dot org> + +pkgname=perl-file-blarf +_cpanname=File-Blarf +pkgver=0.12 +pkgrel=1 +pkgdesc="Perl/CPAN Module File::Blarf - Simple reading and writing of files" +arch=(any) +url="https://metacpan.org/release/$_cpanname" +license=(PerlArtistic) +options=('!emptydirs') +source=("http://cpan.metacpan.org/authors/id/T/TE/TEX/$_cpanname-$pkgver.tar.gz") +md5sums=('acf4abb13fdc033d888c61b5d101bad6') + +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 +} |