aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-www-mechanize-cached/APKBUILD
blob: 630aa3cc8b30cf0e7c69f40b27e822a4c12b791d (plain) (tree)
1
2
3
4
5
6
7
8



                                                      
                                                              
                             
           
        


























                                                                                                                                                                   
                                                                                                                                                                               
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-www-mechanize-cached
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=WWW-Mechanize-Cached
pkgver=1.54
pkgrel=1
pkgdesc="Cache response to be polite"
url="https://metacpan.org/release/WWW-Mechanize-Cached/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-www-mechanize perl-cache-cache perl-data-dump perl-moo perl-moox-types-mooselike perl-namespace-clean perl-module-runtime"
makedepends="perl-dev"
checkdepends="perl-uri perl-cache-cache perl-test-requiresinternet perl-http-message perl-path-tiny perl-chi perl-test-fatal perl-test-warnings perl-test-requires"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/WWW-Mechanize-Cached-$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="087cc92d886dc6ccddb23856e4ed6dd451cc114f6b02e078b153913d32513b3b31b7110c5ec3e352971811acce37bd564fa94b36da288b2bf4a832cd38628aba  WWW-Mechanize-Cached-1.54.tar.gz"