aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-sub-install/APKBUILD
blob: 25e4daed09bb7384d6f0f921d2d64b6d0b8dfb50 (plain) (tree)
1
2
3
4
5
6
7
                                                      

                                                           

                        
            
        










                                                                                  
                                    

           
                      




                                                                 
                      
                                                               





                      


           

                                      


                                                                           
                                                                                                                                                                       
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-sub-install
_pkgreal=Sub-Install
pkgver=0.928
pkgrel=1
pkgdesc="install subroutines into packages easily"
url="http://search.cpan.org/dist/Sub-Install/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="perl-test-pod perl-test-pod-coverage"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	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
}

check() {
        cd "$builddir"
        make test
}

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

sha512sums="3f25df9f5992075968830d4235e9f6520c526331b9180391e41483241d43253a61ad8dc381d77aaeb6c6fb841cfc5c097598e62abb46208894275c393a133ade  Sub-Install-0.928.tar.gz"