aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-www-mechanize/APKBUILD
blob: 0516592c71514112f686da67e0c4a42107bc5655 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-www-mechanize
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=WWW-Mechanize
pkgver=2.13
pkgrel=0
pkgdesc="Handy web browsing in a Perl object"
url="https://metacpan.org/release/WWW-Mechanize/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="
	perl perl-libwww perl-html-tree perl-uri perl-html-parser perl-http-cookies perl-http-message
	perl-html-form
	"
checkdepends="
	perl-http-daemon perl-test-fatal perl-test-output perl-test-deep perl-test-warnings
	perl-path-tiny perl-test-nowarnings perl-test-taint perl-test-exception perl-libwww
	perl-test-memory-cycle perl-uri perl-test-warn
	"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SI/SIMBABQUE/WWW-Mechanize-$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="
72439399b47fe14a5e7cf40843b25c20a373fe7e133e86d2f694f7f8db6fec1374bfd1c4e3e92310baf528fd7e7d9de8a122fca8238df94de6df53941a5fd778  WWW-Mechanize-2.13.tar.gz
"