aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-digest-md5/APKBUILD
blob: b1a490b0b1d389396c2714e13bf55f0a5e54467f (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      
                                                      

                                                     
                                                              
                   
           
        
                                              
                                              
          


                                               
                          
                                                                                  
                                    
 



                                                                     

 


                                                                


           
                                      


                                                                           

                                                                                                                                                                     
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-digest-md5
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Digest-MD5
pkgver=2.58
pkgrel=0
pkgdesc="Perl interface to the MD-5 algorithm"
url="https://metacpan.org/release/Digest-MD5/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TO/TODDR/Digest-MD5-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

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

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


sha512sums="d1f186c0aa4145f6429e06e998c57e93b19e69e0194adcac18410daf18d653e9efe1fade99561fefe25a1dab16e88dccb1e0590a9932829c7c63ded0ba5a4d3e  Digest-MD5-2.58.tar.gz"