diff options
author | Britney Fransen <brfransen@gmail.com> | 2017-04-18 17:35:34 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2017-04-18 17:35:34 (GMT) |
commit | a3e950053d847e719d489c13064b6c165425385c (patch) | |
tree | fccd4ec9f53e519563c0cfd25833cd8c3caaaa20 /abs/core/perl_modules/perl-sys-cpu | |
parent | bd44be589a2626bd26a7f31b23c2358fb74e5c95 (diff) | |
parent | 0a8de86de9f21f7877075ac2800254239ae84a81 (diff) | |
download | linhes_pkgbuild-a3e950053d847e719d489c13064b6c165425385c.zip linhes_pkgbuild-a3e950053d847e719d489c13064b6c165425385c.tar.gz linhes_pkgbuild-a3e950053d847e719d489c13064b6c165425385c.tar.bz2 |
Merge branch 'testing'
Diffstat (limited to 'abs/core/perl_modules/perl-sys-cpu')
-rw-r--r-- | abs/core/perl_modules/perl-sys-cpu/PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
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 <chriskitching@linux.com> +# Essentially stolen from Nathan Hulse <nat.hulse@gmail.com> +# 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/" +} + |