# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=lftp pkgver=4.6.2 pkgrel=0 pkgdesc="LFTP is sophisticated ftp/http client" url="http://lftp.yar.ru/" arch="all" license="GPL" depends= makedepends="gnutls-dev readline-dev ncurses-dev gettext-dev" subpackages="$pkgname-doc" source="http://lftp.yar.ru/ftp/lftp-$pkgver.tar.xz " _builddir="$srcdir/$pkgname-$pkgver" prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc/lftp \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-gnutls \ --with-modules \ --disable-nls \ --disable-static \ --with-gnutls \ --without-openssl \ || return 1 make || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install rm -f "$pkgdir"/usr/lib/*.la rm -f "$pkgdir"/usr/lib/charset.alias } md5sums="487c064ee1bd732e5f95928e530435a8 lftp-4.6.2.tar.xz" sha256sums="1e61d5c94b06c333309185e86cfce0729e45e3f69f7496c58d61093b135c8bb9 lftp-4.6.2.tar.xz" sha512sums="2cfc4982341b45767d61392d5407468348923e867a599b959bb5e8b2c060d4464e2905cea8dd7ce8ad0870d826b4bbd376acabd6b648d7cd0a82305bd1e2b171 lftp-4.6.2.tar.xz"