updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / perl-net-sftp / PKGBUILD
blobe7faca2539f5bc381696a09ae3e86ad7681a9457
1 # Maintainer: Damien Guihal <dguihal@gmail.com>
2 pkgname=perl-net-sftp
3 pkgver=0.10
4 pkgrel=3
5 pkgdesc="Secure File Transfer Protocol client"
6 url="http://search.cpan.org/~dbrobins/Net-SFTP/"
7 depends=('perl')
8 arch=('i686' 'x86_64')
9 license="Artistic License"
10 options=('')
11 source=(http://search.cpan.org/CPAN/authors/id/D/DB/DBROBINS/Net-SFTP-$pkgver.tar.gz)
12 sha256sums=('00cd1169cc50151926af96cad61f070c52d7236dd6bd996b7cc63952fb0a7de5')
14 build() {
15   cd  $startdir/src/Net-SFTP-$pkgver
16   eval `perl -V:archname`
17   # Force module installation to "current" perl directories.
18   /usr/bin/perl Makefile.PL \
19       INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
20       INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
21       INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
22   /usr/bin/make || return 1
23   /usr/bin/make DESTDIR=$startdir/pkg install
24   # remove *.pod, .packlist:
25   /usr/bin/find $startdir/pkg -name '.packlist' -exec rm  '{}' \;
26   /usr/bin/find $startdir/pkg -name '*.pod' -exec rm  '{}' \;