| 1 | # Automatically generated by apkbuild-cpan, template 4 |
| 2 | # Contributor: Celeste <[email protected]> |
| 3 | # Maintainer: |
| 4 | pkgname=perl-memory-process |
| 5 | pkgver=0.06 |
| 6 | pkgrel=4 |
| 7 | #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan |
| 8 | _pkgreal=Memory-Process |
| 9 | pkgdesc="Determine actual memory usage of a Perl program" |
| 10 | url="https://metacpan.org/release/Memory-Process/" |
| 11 | arch="noarch" |
| 12 | license="BSD-2-Clause" |
| 13 | depends="perl perl-memory-usage perl-readonly" |
| 14 | makedepends="perl-test-nowarnings perl-capture-tiny" |
| 15 | subpackages="$pkgname-doc" |
| 16 | source="https://cpan.metacpan.org/authors/id/S/SK/SKIM/Memory-Process-$pkgver.tar.gz" |
| 17 | builddir="$srcdir/$_pkgreal-$pkgver" |
| 18 | |
| 19 | build() { |
| 20 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 21 | PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \ |
| 22 | INSTALLDIRS=vendor \ |
| 23 | NO_PACKLIST=1 \ |
| 24 | NO_PERLLOCAL=1 |
| 25 | make |
| 26 | } |
| 27 | |
| 28 | check() { |
| 29 | export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') |
| 30 | make test |
| 31 | } |
| 32 | |
| 33 | package() { |
| 34 | make DESTDIR="$pkgdir" install |
| 35 | } |
| 36 | |
| 37 | sha512sums=" |
| 38 | 13a52f12965ec0541ad0d52ac182b39de8c1fcf00d7482aa9d860fc20c7011287b48e8146e344e8a89583954d7b584010fe320458c944eeb28eac66072ceac91 Memory-Process-0.06.tar.gz |
| 39 | " |