summaryrefslogtreecommitdiff
path: root/system/perl-www-robotrules/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 04:55:26 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 04:55:26 -0500
commitc54f82fa2b24b8aa6321c94d9f3fadb1f46cac70 (patch)
tree06198962c51e13f97bd27def6a03c5a3bf9bdba1 /system/perl-www-robotrules/APKBUILD
parentfa2852991f2326368c0ac6a9729d99b6109fc315 (diff)
downloadpackages-c54f82fa2b24b8aa6321c94d9f3fadb1f46cac70.tar.gz
packages-c54f82fa2b24b8aa6321c94d9f3fadb1f46cac70.tar.bz2
packages-c54f82fa2b24b8aa6321c94d9f3fadb1f46cac70.tar.xz
packages-c54f82fa2b24b8aa6321c94d9f3fadb1f46cac70.zip
system/perl-www-robotrules: add for lwp
Diffstat (limited to 'system/perl-www-robotrules/APKBUILD')
-rw-r--r--system/perl-www-robotrules/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/system/perl-www-robotrules/APKBUILD b/system/perl-www-robotrules/APKBUILD
new file mode 100644
index 000000000..f2add4a41
--- /dev/null
+++ b/system/perl-www-robotrules/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-www-robotrules
+pkgver=6.02
+pkgrel=2
+pkgdesc="Perl module for parsing /robots.txt files on HTTP servers"
+url="http://search.cpan.org/dist/WWW-RobotRules/"
+arch="noarch"
+license="GPL-2.0-only OR Artistic-1.0-Perl"
+depends="perl perl-uri"
+makedepends="perl-dev"
+install=""
+replaces="perl-libwww"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/WWW-RobotRules-$pkgver.tar.gz"
+builddir="$srcdir"/WWW-RobotRules-$pkgver
+
+build() {
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="781a2fc90e4efed901a91ecf4f2aaac2684409c6a75a8434ff140654838bb05d11f8fa760642e20eee96450d3ced6815a4dab11a4245bc8120c69ca68ab49e44 WWW-RobotRules-6.02.tar.gz"