# Template file for 'lftpfs'
pkgname=lftpfs
version=0.4.3
revision=1
build_style=perl-module
makedepends="perl-Fuse perl-IPC-Run lftp"
short_desc="Filesystem with caching based on FUSE and LFTP"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://lftpfs.sourceforge.net/"
license="GPL-2"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=5116e06dfc03c4000f3157916d4bf2b9bcd6f47667790217dbf3b9f04861bf39
long_desc="
 LftpFS is a read-only network filesystem with caching for smart mirror of
 sites. Useful for mirroring of Linux repositories. It's based on FUSE and
 LFTP client, which supports FTP, HTTP, FISH, SFTP, HTTPS, FTPS protocols
 and works over proxies. LftpFS is a fork from unmaintained FuseFTP.

 Features
    connection features of LFTP (http://lftp.yar.ru/)
    caching of files with a structure of remote directory
    include/exclude matching files/dirs
    using as mirror tool with on-demand download of files
"

post_install() {
	vmkdir usr
	mv ${DESTDIR}/usr/lib/perl5/vendor_perl/bin ${DESTDIR}/usr
}

lftpfs_package() {
	depends="perl-Fuse perl-IPC-Run lftp"
	noarch="yes"
	pkg_install() {
		vmove usr
	}
}