1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00

testing/perl-catalystx-leakchecker: new aport

This commit is contained in:
Wen Heping 2025-06-15 03:06:18 +00:00 committed by Celeste
parent 8c7420daa4
commit 96b864cbec

View file

@ -0,0 +1,40 @@
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
pkgname=perl-catalystx-leakchecker
pkgver=0.06
pkgrel=0
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=CatalystX-LeakChecker
pkgdesc="Debug memory leaks in Catalyst applications"
url="https://metacpan.org/release/CatalystX-LeakChecker/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="
perl perl-catalyst-runtime perl-devel-cycle perl-moose perl-moosex-types perl-padwalker
perl-task-weaken perl-text-simpletable perl-namespace-autoclean perl-namespace-clean
"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/F/FL/FLORA/CatalystX-LeakChecker-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
INSTALLDIRS=vendor \
NO_PACKLIST=1 \
NO_PERLLOCAL=1
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
6899db31dc2c071d530d7227fc19921fb9ac004831d081f0e6dd2e2a28f3dbff47bd28aece3aa80ae9459e6bc3a65417e297c50e3ee16cfd1183f81bc9cecc3f CatalystX-LeakChecker-0.06.tar.gz
"