# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=lftp pkgver=4.4.15 pkgrel=3 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="f19cc0cea1d427aa2a952b27661b91e5 lftp-4.4.15.tar.xz 91de52bcbda9490d62cea72be78ab72a 0001-run-the-gunlib-checks-with-same-compiler-as-when-bui.patch c2e3e6b4aabd97658fe8488ff6859ea0 stdc-limit-macros.patch" sha256sums="75f40b7ab438a7b295410eb3e1ec8460e36ad2d48785383a6fc9201905db6868 lftp-4.4.15.tar.xz e50ae5f0db272a31146cc29909bd07a1b7c11c78dad6e9a51eb3ad4231b5c323 0001-run-the-gunlib-checks-with-same-compiler-as-when-bui.patch 9dcb0f0ef32e3a27c955aadf6af4d60ce98d14df8bc9bc0fcf72f7c6479d555b stdc-limit-macros.patch" sha512sums="1d828a7b2ff808a0ee78f51c265d58df677e67cec9b4744cbd3a34816aba324199202094fa4144665e8d64385df7e76a54c6dc415e9ff33e97adab2eb0edaf4e lftp-4.4.15.tar.xz 3f7e7958787c323b148415ba42d8748d27a515da2dbc62c087e778190806cf6f683900966c359829d3ba1a4d8d06a874d35c41316c89059b1c85806328f422cc 0001-run-the-gunlib-checks-with-same-compiler-as-when-bui.patch ba7ae5f68382a8bb24ed4a2313a224cf5ac5e105bc15ab22c3f43578cb4cb6cc436d8f7327e5da2b9f3c28ab5532123f7db6ea12d9ba3cba12b8f9cf71bb3632 stdc-limit-macros.patch"