aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-uri/APKBUILD
blob: ca230e4ff5690769a78239734c771533b3e4730c (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-uri
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=URI
pkgver=5.05
pkgrel=0
pkgdesc="Uniform Resource Identifiers (absolute and relative)"
url="https://metacpan.org/release/URI/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
checkdepends="perl-test-needs"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/URI-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

replaces="perl-uri-escape"

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="4347c1bb7b1aa370b474a8405d4fd1d44dbd3ff31772f743ba0eb4570c524b0b5a18e10c005b2057197170c91433317fc18421d8576577316acd2c20f9ebcee9  URI-5.05.tar.gz"