aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-net-appliance-session/APKBUILD
blob: d510146daf7d0a80be6d5960dcda1ea9a51c3f0d (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
41
42
43
44
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-net-appliance-session
_pkgreal=Net-Appliance-Session
pkgver=4.300001
pkgrel=0
pkgdesc="Run command-line sessions to network appliances"
url="http://search.cpan.org/dist/Net-Appliance-Session/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-moose perl-net-cli-interact perl-file-sharedir perl-text-glob
	perl-io perl-term-readpassword perl-io-prompt-tiny"
cpanmakedepends="perl-module-build perl-namespace-autoclean perl-specio perl-params-validationcompiler"
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="0de00fdb19b601e141367d65dc67cb348e3c791f5febc148b12f609859b6a3f3d6a901e5c7b6dd1959ab4735b68d869d8869fa6120d3c5d3f2740f71f8daa796  Net-Appliance-Session-4.300001.tar.gz"