aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-libwww/APKBUILD
blob: 69879c4302472631edb0104bae4b692a9d113dcb (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                      

                     
           
        
                                              
                                  
             
                                               





                                                                                             
                                                  
                          
                                                                                     
                                     
 


                       

                                                                 
                                     


 
         

                                                                


         

                                                                


           
                                      
                                                                           

 
                                                                                                                                                                      
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-libwww
_realname=libwww-perl
pkgver=6.55
pkgrel=0
pkgdesc="Perl module - World Wide Web library"
url="https://metacpan.org/pod/LWP"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="
	perl perl-http-date perl-http-cookies perl-net-http perl-http-daemon perl-html-parser
	perl-file-listing perl-www-robotrules perl-http-negotiate perl-uri perl-http-message
	perl-lwp-mediatypes perl-encode-locale perl-try-tiny
	"
makedepends="perl-test-fatal perl-test-requiresinternet"
checkdepends="perl-test-needs perl-test-leaktrace"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/libwww-perl-$pkgver.tar.gz"
builddir="$srcdir/$_realname-$pkgver"

prepare() {
	default_prepare

	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	rm -v t/base/protocols/nntp.t
}


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="4a26bbcea343af513cc7d22761b7b9412da864bc7ff5e6d8cc6494978ceb829f001d1e221482a215e363e7f7857002120dbd12fda14b1b5778b1f437a5e338eb  libwww-perl-6.55.tar.gz"