aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-net-appliance-session/APKBUILD
blob: d7c23834196e3ddd87cfbeb9e59b1e854c037226 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      

                                                           

                                  
               
        
                                                         
                                                         

                          


                                                                                                       


                                       
                                                                                  
                                    

           
                      
                                                               
                                        


         
                      
                                                               





                      


           

                                                     


                                                                           
                                                                                                                                                                                    
# 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=2
pkgdesc="Run command-line sessions to network appliances"
url="https://metacpan.org/release/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="https://cpan.metacpan.org/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"