aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-sub-info/APKBUILD
blob: 09df326833a2ce3cd8e88459535bce9337e16f69 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      

               


                     
        
                                          
                                            








                                            
                                                                                   




























                                                                                                                                                                    
# Automatically generated by apkbuild-cpan, template 2
# Contributor: 
# Maintainer: 
pkgname=perl-sub-info
_pkgreal=Sub-Info
pkgver=0.002
pkgrel=1
pkgdesc="Tool for inspecting subroutines."
url="https://metacpan.org/release/Sub-Info/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-importer perl-test-simple"
cpanmakedepends=""
cpancheckdepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/EX/EXODIST/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare || return 1

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

build() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make
}

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

check() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

sha512sums="e3ad2c8b270a44f9de2d5b71845a4a21f363a234edf2ddb9942c2fb2e4d765eedff3653a047f025b9d1dfaeff32ddd58aeff7f81fa42e6f4b57f5ca6311519b3  Sub-Info-0.002.tar.gz"