blob: 510f9085aef3916fae2b9938357ccfb8c1722de9 (
plain)
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
|
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=perl-sys-meminfo
_pkg_real=Sys-MemInfo
pkgver=0.99
pkgrel=3
pkgdesc="Query the total free and used physical memory"
url="http://search.cpan.org/~scresto/Sys-MemInfo"
arch="all"
license="Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SC/SCRESTO/$_pkg_real-$pkgver.tar.gz"
builddir="$srcdir/"$_pkg_real-$pkgver
build() {
cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="ad0f8a12db7f7c643d0eb2d68fb1dcbff43928b786d390243e89d88537bd99360f88af177678ce5141e3870224da80ea5a432c465e8c7ec384abd21014c0e1c0 Sys-MemInfo-0.99.tar.gz"
|