aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-www-mechanize/APKBUILD
blob: 4860ea203fc9e1753cfc2327db3b0a053b5236fd (plain)
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
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-www-mechanize
_pkgreal=WWW-Mechanize
pkgver=1.92
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"
cpandepends="perl-libwww perl-html-tree perl-uri perl-html-parser
	perl-http-cookies perl-http-message perl-html-form"
cpancheckdepends="perl-cgi perl-http-daemon perl-test-fatal perl-test-output
	perl-test-deep perl-http-server-simple perl-test-warnings"
depends="$cpandepends"
makedepends="perl-dev"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/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="4f33c4242d4c0a339ef180e80ea0dc5bc8c631494bb48b36f5db3876476af22e83e6944b1d0f605f735bf00fd0e16de256900ccfc6f1f84ce2ccc0f0da690951  WWW-Mechanize-1.92.tar.gz"