aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-email-messageid/APKBUILD
blob: 7923857fbbdca3419ca3971da0258c8f224a6725 (plain) (tree)
1
2
3
4
5
6
7
8
                                                      

                                                           

                            
            
        
                                            


                                                  
              
                  




                                                                                  
                                    

           


                       




                                                                 
                      
                                                               





                      


           

                                      


                                                                           
                                                                                                                                                                           
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-email-messageid
_pkgreal=Email-MessageID
pkgver=1.406
pkgrel=1
pkgdesc="Generate world unique message-ids."
url="http://search.cpan.org/dist/Email-MessageID/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
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() {
	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="c36861267a127372076391e5e6458ee19bbdc8d09c3b1ce3131d0cad1a82a6f9b2bc5a29df8bafa2450ea0e5c06993abf98928f2246e694d05875e40b7e36109  Email-MessageID-1.406.tar.gz"