# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=lftp pkgver=4.6.3a 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="b469ccc40d624aa4fdc66c1674b916d0 lftp-4.6.3a.tar.xz" sha256sums="8c3a12a1f9ec288132b245bdd7d14d88ade1aa5cb1c14bb68c8fab3b68793840 lftp-4.6.3a.tar.xz" sha512sums="1ecc1e71f73b9713c14cadf1792d56afa41b59e86219743076cf59310db2063335dbc69f58de00c34a1527c3be595959867f964bc7dba2f4989b3625899eac21 lftp-4.6.3a.tar.xz"