aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-email-mime/APKBUILD
blob: 70a443845909c79d2a7514da83cf0e7ea2fe08c4 (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-email-mime
_pkgreal=Email-MIME
pkgver=1.949
pkgrel=1
pkgdesc="easy MIME message handling"
url="https://metacpan.org/release/Email-MIME/"
arch="noarch"
license="GPL-1.0-or-later Artistic-1.0-Perl"
depends="perl-email-mime-contenttype perl-email-mime-encodings
perl-email-simple perl-email-address perl-email-messageid perl-mime-types
perl-email-address-xs perl-module-runtime"
makedepends="perl-dev"
checkdepends="perl-text-unidecode"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"

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

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="2cd8653a4efe8195d574827ad15883ff7f82d92325197c0458f1ddfd4c50ed275068e8a2df5ed5110b37b5b904aaf4234855eefec9cfc0d70987e678df2732ea  Email-MIME-1.949.tar.gz"