public
Created

Updated PKGBUILD for 'perl-log-dispatch-filerotate'

  • Download Gist
PKGBUILD
Shell
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
# Maintainer: Gerad Munsch <gmunsch@unforgivendevelopment.com>
# Contributor: Anonymous
# Generator : CPANPLUS::Dist::Arch 1.13
# vim:set ts=2 sw=2 et ft=sh tw=100: expandtab
 
_author="M/MA/MARKPF"
_perlmod="Log-Dispatch-FileRotate"
pkgname='perl-log-dispatch-filerotate'
pkgver='1.19'
pkgrel='2'
pkgdesc="Log::Dispatch::FileRotate - Log to files that archive/rotate themselves"
arch=('any')
license=('PerlArtistic'
'GPL')
options=('!emptydirs')
depends=('perl-date-manip'
'perl-log-dispatch'
'perl-log-log4perl>=1.0'
'perl-params-validate')
url="http://search.cpan.org/dist/${_perlmod}"
source=("http://search.cpan.org/CPAN/authors/id/${_author}/${_perlmod}-${pkgver}.tar.gz")
md5sums=('8fabfe387bb070580f7c97c18853ae25')
_distdir="${srcdir}/Log-Dispatch-FileRotate-1.19"
 
build() {
# change working directory to extracted source
cd "${srcdir}/${_perlmod}-${pkgver}"
# setting these env variables overwrites any command-line options we don't want
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
# if using 'Makefile.PL'
if [ -r Makefile.PL ]; then
/usr/bin/perl Makefile.PL
make
 
# if using 'Build.PL'
elif [ -r Build.PL ]; then
/usr/bin/perl Build.PL
perl Build
 
fi
}
 
check() {
# change working directory to extracted source
cd "${srcdir}/${_perlmod}-${pkgver}"
# if using 'Makefile.PL'
if [ -r Makefile.PL ]; then
/usr/bin/perl Makefile.PL
make test
 
# if using 'Build.PL'
elif [ -r Build.PL ]; then
/usr/bin/perl Build.PL
perl Build test
 
fi
}
 
package() {
# change working directory to extracted source
cd "${srcdir}/${_perlmod}-${pkgver}"
# if using 'Makefile.PL'
if [ -r Makefile.PL ]; then
/usr/bin/perl Makefile.PL
make install
 
# if using 'Build.PL'
elif [ -r Build.PL ]; then
/usr/bin/perl Build.PL
perl Build install
 
fi
# remove perllocal.pod and .packlist
find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.