aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-template-toolkit/APKBUILD
blob: 76d1f467aff3468a24506f8ba0cd76adc5154263 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      

                                                           

                             
            
        
                                                  
                                                   
          
                                               
                             
                      
                          
                                                                                        
                                    

           

                       
                                                                



                                                                 
                                                                



            
                 


           
                                      


                                                                           
            
                                                                                                                                                               
 
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-template-toolkit
_pkgreal=Template-Toolkit
pkgver=3.100
pkgrel=0
pkgdesc="comprehensive template processing system"
url="https://metacpan.org/release/Template-Toolkit"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-appconfig"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TO/TODDR/Template-Toolkit-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

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

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

check() {
	make test
}

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

sha512sums="
7a23254450662a71761f7f8f6d774f71695ce975ef5638d04e45858a39003f82453cefdfed4528840094126a6148fe68d98a39fd5dde4908a08b6128576b3767  Template-Toolkit-3.100.tar.gz
"