aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-www-mechanize
diff options
context:
space:
mode:
Diffstat (limited to 'testing/perl-www-mechanize')
-rw-r--r--testing/perl-www-mechanize/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/perl-www-mechanize/APKBUILD b/testing/perl-www-mechanize/APKBUILD
new file mode 100644
index 0000000000..eea528c2f5
--- /dev/null
+++ b/testing/perl-www-mechanize/APKBUILD
@@ -0,0 +1,40 @@
+# 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.91
+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 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-message perl-http-daemon perl-uri
+ perl-test-fatal perl-test-output perl-test-deep
+ perl-http-server-simple perl-test-warnings perl-libwww"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+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="f051f3f91f7b70cd7c8e6c624e9c359b9a041c4da8bce38b9a1cbd7b4b48d6e6b1d3e60f901a6b0c9b876119a2fae86c32be7ee40216d56754779076b0f4a879 WWW-Mechanize-1.91.tar.gz"