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

                                                    

                                                              
           
        
                                                              
                                               
             

                                               
                          

                                                                                      

         







                                                                     


           
                                      
                                                                           

 
                                                                                                                                                                      
# Automatically generated by apkbuild-cpan, template 3
# Maintainer:  Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-digest-hmac
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Digest-HMAC
pkgver=1.04
pkgrel=1
pkgdesc="Keyed-Hashing for Message Authentication Perl module"
url="https://metacpan.org/release/Digest-HMAC/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-digest-sha1 perl-digest-md5"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/A/AR/ARODLAND/Digest-HMAC-$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="d30b62e60bfa9f6c0f0c058e190938f13a08a70a816771a0641226c24045cb6dbd622756f1f88593fd3690442a45636bdcaf35457e9dfea6de5f8a342a538a6d  Digest-HMAC-1.04.tar.gz"