summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/perl-test-memory-cycle/APKBUILD34
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"