aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-net-cli-interact/APKBUILD
blob: 4602d6e094c6d68cdbcc399019083aca23984d5d (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
35
36
37
38
39
40
41
42
43
44
45
46
47
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-net-cli-interact
_pkgreal=Net-CLI-Interact
pkgver=2.300002
pkgrel=0
pkgdesc="Toolkit for CLI Automation"
url="http://search.cpan.org/dist/Net-CLI-Interact/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-moo perl-log-dispatch-configurator-any perl-path-class
perl-log-dispatch-config perl-ipc-run perl-moox-types-mooselike perl-mro-compat
perl-io-tty perl-class-load perl-net-telnet perl-class-mix perl-eval-closure
perl-devel-stacktrace perl-params-validationcompiler perl-file-sharedir"
cpanmakedepends="perl-module-build perl-namespace-autoclean"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/O/OL/OLIVER/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	perl Build.PL installdirs=vendor
}

build() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	./Build
}

check() {
	cd "$builddir"
	./Build test
}

package() {
	cd "$builddir"
	./Build install destdir="$pkgdir" || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}


sha512sums="aa686f6948397294daa318ad6eea65002d03bbbdecddb8a8b5821da9624773c2a568291fae8b3f75c4cb90038832130fb39dec5c1717b382eebd94fef16d6e87  Net-CLI-Interact-2.300002.tar.gz"