aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-crypt-x509/APKBUILD
blob: 91b13e470fa5514d33907875046b623b25c38e5f (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                                      

                   



                                             
                           
                               
                


                                       

                                                                                     

           




                                                                 
                                                               





                                                               


           
                                      


                                                                           
                                                                                                                                                                     
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-crypt-x509
_pkgname=Crypt-X509
pkgver=0.52
pkgrel=0
pkgdesc="Parse a X.509 certificate"
url="http://search.cpan.org/dist/Crypt-X509/"
arch="noarch"
license="Artistic-1.0-Perl"
cpandepends="perl-convert-asn1"
cpanmakedepends=
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MR/MRSCOTTY/Crypt-X509-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$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() {
	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="fc02335f8d3696db709867afc31b1c93b3598c54c0575e4dd2fb50e4ce626d82ac9c09d6ca9b79b42828d252a1a687ee54be203db45d957fec58fb76d239a2d5  Crypt-X509-0.52.tar.gz"