summaryrefslogtreecommitdiff
path: root/system/perl-www-robotrules/APKBUILD
blob: 1bd5c777f6825cb9a6b7298f98c52912e47cfc59 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-www-robotrules
_pkgreal=WWW-RobotRules
_author=GAAS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=6.02
pkgrel=2
pkgdesc="Perl module for parsing /robots.txt files on HTTP servers"
url="https://metacpan.org/release/WWW-RobotRules"
arch="noarch"
license="GPL-2.0-only OR Artistic-1.0-Perl"
depends="perl-uri"
makedepends=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="781a2fc90e4efed901a91ecf4f2aaac2684409c6a75a8434ff140654838bb05d11f8fa760642e20eee96450d3ced6815a4dab11a4245bc8120c69ca68ab49e44  WWW-RobotRules-6.02.tar.gz"