# Contributor (Arch): Alessandro Sagratini # Contributor: Márcio Silva pkgname=perl-net-sftp-foreign pkgver=1.81 pkgrel=1 pkgdesc="Perl SFTP client using the native SSH client application" arch=(any) url=http://search.cpan.org/~salva/Net-SFTP-Foreign license=('GPL2') depends=('perl>=5.10.0') optdepends=('perl-file-which' 'perl-sort-key') options=(!emptydirs) changelog=Changes source=(http://search.cpan.org/CPAN/authors/id/S/SA/SALVA/Net-SFTP-Foreign-$pkgver.tar.gz) md5sums=('74c8c84cd41236db730715b79cd82219') build() { cd "$srcdir/Net-SFTP-Foreign-$pkgver" # install module in vendor directories. PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 make || return 1 } package() { cd "$srcdir/Net-SFTP-Foreign-$pkgver" make install DESTDIR=${pkgdir} || return 1 # remove perllocal.pod and .packlist find "$pkgdir" -name perllocal.pod -delete find "$pkgdir" -name .packlist -delete }