From c9092b96ef4f2fd32f7b7ae8bdefd0880ecf3964 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Wed, 22 Mar 2017 19:49:46 +0000 Subject: perl-sys-cpu: initial inclusion. dep of zoneminder --- abs/core/perl_modules/perl-sys-cpu/PKGBUILD | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 abs/core/perl_modules/perl-sys-cpu/PKGBUILD diff --git a/abs/core/perl_modules/perl-sys-cpu/PKGBUILD b/abs/core/perl_modules/perl-sys-cpu/PKGBUILD new file mode 100644 index 0000000..325fd89 --- /dev/null +++ b/abs/core/perl_modules/perl-sys-cpu/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Chris Kitching +# Essentially stolen from Nathan Hulse +# Oddly it disappeared from the AUR, and I want creduce, so I dug it +# up and mopped the blood off. + +pkgname=perl-sys-cpu +pkgver=0.61 +pkgrel=1 +pkgdesc="Perl extension for getting CPU information. Currently only number of CPU's supported." +arch=('any') +url="http://search.cpan.org/~mkoderer/Sys-CPU-$pkgver/" +license=('GPL' 'PerlArtistic') +depends=('perl>=5.10.0') +options=(!emptydirs) +source=(https://cpan.metacpan.org/authors/id/M/MZ/MZSANFORD/Sys-CPU-$pkgver.tar.gz) +md5sums=(f43a3a50ac2dca6c1485a859ebef09b2) + +build() { + cd "$srcdir/Sys-CPU-$pkgver" + + # Install module in vendor directories. + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +package() { + cd "$srcdir/Sys-CPU-$pkgver" + make install DESTDIR="$pkgdir/" +} + -- cgit v0.12