diff options
author | John D Jones III | 2015-06-16 15:56:52 -0600 |
---|---|---|
committer | John D Jones III | 2015-06-16 15:56:52 -0600 |
commit | 3b6ddf75db0bf3a655e01ef2ff813da84b316fca (patch) | |
tree | 3cb68742259c5d4c02e4f77b7cf279ae944f6d57 /PKGBUILD | |
download | aur-perl-sys-statistics-linux.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3bc7e85a8721 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Contributor: John D Jones III <j[nospace]n[nospace]b[nospace]e[nospace]k[nospace]1972 -_AT_- the domain name google offers a mail service at ending in dot com> +# Generator : CPANPLUS::Dist::Arch 1.25 + +pkgname='perl-sys-statistics-linux' +pkgver='0.66' +pkgrel='1' +pkgdesc="Front-end module to collect system statistics" +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl-universal-require') +makedepends=() +url='http://search.cpan.org/dist/Sys-Statistics-Linux' +source=('http://search.cpan.org/CPAN/authors/id/B/BL/BLOONIX/Sys-Statistics-Linux-0.66.tar.gz') +md5sums=('7bfc6ce644df994fdcefc3b63d529778') +sha512sums=('0387e7746d923860e5d9362f3259c19fc2e173cf6199aae11238a9bc0b588afe05026a876592845e0ac12f445cfb2c38ff7646fe9beed5807548179c7b2754b4') +_distdir="Sys-Statistics-Linux-0.66" + +build() { + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + MODULEBUILDRC=/dev/null + + cd "$srcdir/$_distdir" + /usr/bin/perl Makefile.PL + make + ) +} + +check() { + cd "$srcdir/$_distdir" + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make test + ) +} + +package() { + cd "$srcdir/$_distdir" + make install + + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} + +# Local Variables: +# mode: shell-script +# sh-basic-offset: 2 +# End: +# vim:set ts=2 sw=2 et: |