aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-net-cidr/APKBUILD
blob: 7cd7c00533f2c0f8d71cdfbcf7eb5f47c4fc9ef4 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      


                                                    

                                                              
           
        
                                                         
                                            
             
                                               

                      
 
                          
                                                                                
                                    

         

                                                                     



            
                                                                
                 


           
                                      


                                                                           
                                                                                                                                                                   
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-net-cidr
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Net-CIDR
pkgver=0.21
pkgrel=1
pkgdesc="Manipulate IPv4/IPv6 netblocks in CIDR notation"
url="https://metacpan.org/release/Net-CIDR/"
arch="noarch"
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/M/MR/MRSAM/Net-CIDR-$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="28e7c808173d87a403ab6d924763bdeeef61801775167a11b02bf352d70808821f896f7e3dbb1fd3cd2b42c937f9c6175d1522daddf38c53ee9d242d1a3b5fd1  Net-CIDR-0.21.tar.gz"