summaryrefslogtreecommitdiff
path: root/user/perl-test-memory-cycle/APKBUILD
diff options
context:
space:
mode:
authorSíle Ekaterin Liszka <sheila@vulpine.house>2022-05-20 03:35:41 +0000
committerZach van Rijn <me@zv.io>2022-10-21 18:33:59 -0500
commitac31759ea02a191c0c0515cad77461604ce93f9e (patch)
tree113ae77cc0118702bd472c958c01ee02a34e8371 /user/perl-test-memory-cycle/APKBUILD
parent46141078df6cc8b22d22567c95ef007b8df61e16 (diff)
downloadpackages-ac31759ea02a191c0c0515cad77461604ce93f9e.tar.gz
packages-ac31759ea02a191c0c0515cad77461604ce93f9e.tar.bz2
packages-ac31759ea02a191c0c0515cad77461604ce93f9e.tar.xz
packages-ac31759ea02a191c0c0515cad77461604ce93f9e.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/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"