summaryrefslogtreecommitdiff
path: root/cpan2cruxPorts/p5-sys-meminfo/Pkgfile
blob: 301bcb1d5694c4ede6dc06e5c2ad63c6f6098189 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Description: query the total free and used physical memory
# URL: https://metacpan.org/release/Sys-Meminfo
# Maintainer: Erich Eckner, crux at eckner dot net

name=p5-sys-meminfo
version=0.99
release=2
source=(https://cpan.metacpan.org/authors/id/S/SC/SCRESTO/Sys-MemInfo-$version.tar.gz)

build() {
	cd Sys-MemInfo-$version
	perl Makefile.PL
	make OPTIMIZE="$CFLAGS"
	make DESTDIR="$PKG" install
	find "$PKG" \( -name perllocal.pod -o -name .packlist \) -delete
	find "$PKG" -depth -type d -empty -delete
}