aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-openssh/APKBUILD
blob: ee1987a3f8bab76f70c3d35fa6c67986e0e4b269 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-net-openssh
_pkgreal=Net-OpenSSH
pkgver=0.79
pkgrel=0
pkgdesc="Perl SSH client package implemented on top of OpenSSH"
url="https://metacpan.org/release/Net-OpenSSH"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SA/SALVA/Net-OpenSSH-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make
	# make test is interactive
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="385e4ef8b1e8e503ff097a68211af3e0258649710ac292e8dee5b752b263dd7546c23d5d60e9926acc129e33ca36cf2ad47ef0ab41faf8acc155e392a268856f  Net-OpenSSH-0.79.tar.gz"