aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-sys-meminfo
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2017-09-30 14:00:54 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-10-01 07:47:58 +0000
commitb14117f57807f120aab13143ea67fbd6cdfe30d7 (patch)
tree95ee34d4e47dad7730e8b31da9651941b4eb60a0 /testing/perl-sys-meminfo
parent4c1b891da1464f0b4b6f52f6eb6b531b4ce1d90f (diff)
downloadaports-b14117f57807f120aab13143ea67fbd6cdfe30d7.tar.bz2
aports-b14117f57807f120aab13143ea67fbd6cdfe30d7.tar.xz
testing/perl-sys-meminfo: new aport
Diffstat (limited to 'testing/perl-sys-meminfo')
-rw-r--r--testing/perl-sys-meminfo/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/perl-sys-meminfo/APKBUILD b/testing/perl-sys-meminfo/APKBUILD
new file mode 100644
index 0000000000..cb9abeb748
--- /dev/null
+++ b/testing/perl-sys-meminfo/APKBUILD
@@ -0,0 +1,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=0
+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="http://search.cpan.org/CPAN/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"