# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=lftp pkgver=4.5.5 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="e58fc886e3d7c6d994de5ce51de46087 lftp-4.5.5.tar.xz" sha256sums="a25d768aa78e0a8d0a2e89eeeae9185793d94ccd9e998a50f79ee8f9d69411d3 lftp-4.5.5.tar.xz" sha512sums="3f107809e6b0947b1c2545f3fad46aff9d62b8a4dc39a7ea01d9af02b38472d967ba1952a00dbe1faf45649d11babcae2e395d35647bcd2a4b0eeb48d6b3deca lftp-4.5.5.tar.xz"