aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-libwww/APKBUILD
blob: a7c87f5bfe63c81f983d9b1b5478f36ada4cb37d (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.24
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"
makedepends="perl-dev perl-try-tiny 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="ff9ef2d182b499dc7b2cb26342bd5aa68d23ab6eead651d6a361f983de4ff2bef64a1e2ca653c8637bfdfc4ede460bbddd784ce312161617c685f48fc90fdfb1  perl-libwww-6.24.tar.gz"