aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-net-appliance-session/APKBUILD
blob: e2185f2f062b5bf155d9eb539d2e40efc0c5e1e2 (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.300005
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="f63ce4ec1ac8fbe30de93184a01ee7e00f4e0d1eafd16c6778863608d5e310be9ae26adb15ef86d1e7add9ad8e1ba3998cded5d40ca1e6d936277f2cb1c6e2c3  Net-Appliance-Session-4.300005.tar.gz"