# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=lftp pkgver=4.4.16 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 autoconf automake libtool" subpackages="$pkgname-doc" source="http://lftp.yar.ru/ftp/lftp-$pkgver.tar.xz 0001-run-the-gunlib-checks-with-same-compiler-as-when-bui.patch stdc-limit-macros.patch " _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 libtoolize --force && aclocal -I m4 && autoconf \ && automake --add-missing || return 1 } 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="73e9084731e4ba9bd886a86fdccec519 lftp-4.4.16.tar.xz 91de52bcbda9490d62cea72be78ab72a 0001-run-the-gunlib-checks-with-same-compiler-as-when-bui.patch c2e3e6b4aabd97658fe8488ff6859ea0 stdc-limit-macros.patch" sha256sums="0b0ee4e3f6ea793842058a470dad5a6511d377b5f43f3370e552b10335a662c8 lftp-4.4.16.tar.xz e50ae5f0db272a31146cc29909bd07a1b7c11c78dad6e9a51eb3ad4231b5c323 0001-run-the-gunlib-checks-with-same-compiler-as-when-bui.patch 9dcb0f0ef32e3a27c955aadf6af4d60ce98d14df8bc9bc0fcf72f7c6479d555b stdc-limit-macros.patch" sha512sums="f6e5336ea32aa87666d740fe594eecd6710757d32d11e0160b30b0d56ba9c742d04939dc17df0598266d8622ebaf44cac96c2ec7b01428405150a41e2234aef6 lftp-4.4.16.tar.xz 3f7e7958787c323b148415ba42d8748d27a515da2dbc62c087e778190806cf6f683900966c359829d3ba1a4d8d06a874d35c41316c89059b1c85806328f422cc 0001-run-the-gunlib-checks-with-same-compiler-as-when-bui.patch ba7ae5f68382a8bb24ed4a2313a224cf5ac5e105bc15ab22c3f43578cb4cb6cc436d8f7327e5da2b9f3c28ab5532123f7db6ea12d9ba3cba12b8f9cf71bb3632 stdc-limit-macros.patch"