# Description: Sophisticated command line based FTP client
# URL: http://lftp.yar.ru/
# Maintainer:  Thomas Penteker, tek at serverop dot de
# Packager: Tilman Sauerbeck, tilman at crux dot nu
# Depends on: openssl

name=lftp
version=4.4.0
release=1
source=(ftp://ftp.cs.tu-berlin.de/pub/net/ftp/lftp/$name-$version.tar.xz)

build() {
	cd $name-$version

  sed -i -e '/gets is a/d' lib/stdio.in.h

	./configure --prefix=/usr --disable-nls --with-openssl=/usr \
	            --mandir=/usr/man --sysconfdir=/usr/etc

	make
	make DESTDIR=$PKG install

	rm -r $PKG/usr/lib
}
