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


                                                    
           
        
                               
                                            
             
                                               
                       
                      
                      
                          
                                                                                     
 
                                   

         







                                                                 


           

                                      


                                                                           
                                                                                                                                                                   
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-net-http
pkgver=6.19
pkgrel=0
pkgdesc="Net::HTTP perl module"
url="https://search.cpan.org/dist/Net-HTTP/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-uri"
makedepends="perl-dev"
replaces="perl-libwww"
subpackages="$pkgname-doc"
source="https://search.cpan.org/CPAN/authors/id/O/OA/OALDERS/Net-HTTP-$pkgver.tar.gz"

builddir="$srcdir"/Net-HTTP-$pkgver

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="85b139150d8608f7439ef2f975afe884c1f5220726d45603427510e39ad2003e20ea30ed1326b4ff20527c4e625262769a5abaa5ef320f1c26bf3f8eafc9cd1b  Net-HTTP-6.19.tar.gz"