aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-libwww/APKBUILD
blob: 2774112ebaf7814a59b8ff5c2780f4bcffea648d (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
40
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-libwww
_realname=libwww-perl
pkgver=6.26
pkgrel=0
pkgdesc="Perl module - World Wide Web library"
url="http://search.cpan.org/~mschilli"
arch="noarch"
license="GPL PerlArtistic"
depends="perl-http-date perl-http-cookies perl-net-http perl-http-daemon 
	perl-html-parser perl-file-listing perl-www-robotrules
	perl-http-negotiate perl-uri perl-http-message
	perl-lwp-mediatypes perl-encode-locale perl-try-tiny"
makedepends="perl-dev perl-test-fatal perl-test-requiresinternet"
install=
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/libwww-perl/libwww-perl/archive/v$pkgver.tar.gz"

builddir="$srcdir/$_realname-$pkgver"

build() {
	cd $builddir
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make || return 1
}

check() {
	cd $builddir
	make test || return 1
}

package() {
	cd $builddir
	make DESTDIR="$pkgdir" install
	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete
}

sha512sums="1d22f0234e410d2131b9926a3c5d52e991015401aecbbc990a56c9d793bafcbb40c7d1b22009254e5652be995a316e2df1ae2a2eaedd44cd79353a881c3d2210  perl-libwww-6.26.tar.gz"