aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-provide/APKBUILD
blob: 1ec374fcc669ad362e7d4ffec62bc7986b3982fe (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                      
                                                          


                    
        




                                                                          
                  




                                                                                    
                                    

           


                       




                                                                 
                      
                                                               





                      


           

                                      


                                                                           
                                                                                                                                                                  
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-provide
_pkgreal=provide
pkgver=0.03
pkgrel=1
pkgdesc="easily choose between different version-specific implementations"
url="http://search.cpan.org/dist/provide/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/B/BE/BELDEN/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	default_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="d16762c4c2ecc69619904d9eb81cbc75dc253f85bf2c52ec17d08b3fa64ebf1897521e9d60cb541884e9ccf0fe0b51420eb57d4b09daabeda29ea00d8a90f6f1  provide-0.03.tar.gz"