diff options
author | Síle Ekaterin Liszka <sheila@vulpine.house> | 2022-05-20 03:35:41 +0000 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-06-12 23:51:45 +0000 |
commit | 0dfbad23b207f2bc89d829acaa9e70d1f757bfe5 (patch) | |
tree | b7e71bcf863b1b4b9cc1d1339c5c0168e6e31c55 /user/perl-test-memory-cycle/APKBUILD | |
parent | 2f8b3643898936507282e14d147c87a2d4aa0151 (diff) | |
download | packages-0dfbad23b207f2bc89d829acaa9e70d1f757bfe5.tar.gz packages-0dfbad23b207f2bc89d829acaa9e70d1f757bfe5.tar.bz2 packages-0dfbad23b207f2bc89d829acaa9e70d1f757bfe5.tar.xz packages-0dfbad23b207f2bc89d829acaa9e70d1f757bfe5.zip |
user/perl-test-memory-cycle: new package
Diffstat (limited to 'user/perl-test-memory-cycle/APKBUILD')
-rw-r--r-- | user/perl-test-memory-cycle/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-test-memory-cycle/APKBUILD b/user/perl-test-memory-cycle/APKBUILD new file mode 100644 index 000000000..049e05819 --- /dev/null +++ b/user/perl-test-memory-cycle/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house> +# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house> +pkgname=perl-test-memory-cycle +_pkgreal=Test-Memory-Cycle +_author=PETDANCE +_au=${_author%%"${_author#??}"} +_a=${_author%%"${_author#?}"} +pkgver=1.06 +pkgrel=0 +pkgdesc="Check for memory leaks and circular references" +url="https://metacpan.org/pod/Test::Memory::Cycle" +arch="all" +license="Artistic-2.0" +depends="perl perl-devel-cycle perl-padwalker" +makedepends="" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +build() { + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + make test +} + +package() { + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="d25ffd0439e47e0b57f136489ae200ca24c8434a19473d23f70d0f8a2c8d18a93fe453e9b1b844b5edbd9c788bfe3c83f5413441389dd9b53c780f734afeb804 Test-Memory-Cycle-1.06.tar.gz" |