summaryrefslogblamecommitdiff
path: root/system/perl-test-leaktrace/APKBUILD
blob: 55a802cb591fc823608a56d4ef206d56cf3fd679 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                                                   

                               
           
                                                            
                                                 
                                           
                      
                          
                                                                                        

                                    
                                                                  



                                                                 


                 



                                                                                                                                                                         
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-test-leaktrace
_pkgreal=Test-LeakTrace
_author=LEEJO
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.16
pkgrel=0
pkgdesc="Perl module for tracing memory leaks while testing"
url="https://metacpan.org/release/Test-LeakTrace"
arch="all"
license="GPL-2.0-only OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS="$(perl -MConfig -E 'say $Config{ccflags}')"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="6fa7a5eaae01ca5232f3f297a104553dac5f57e4c6721d7084e5d44b0133206100878c7067b228b1e01b21f7639a97a0ec48ef77198deb0598d94d8861bab049  Test-LeakTrace-0.16.tar.gz"