app=lftp
version=4.9.1
build=1sml
homepage="https://lftp.yar.ru/"
download="https://lftp.yar.ru/ftp/lftp-4.9.1.tar.xz"
desc="Text-mode network utility with support for FTP, HTTP, SFTP, FISH and torrent protocols"
requires="gcc-libs netbsd-curses readline expat gmp gnutls libtasn1 libidn nettle"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version 
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --disable-static

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
3fd08dbffd293164441b0b153dd78c2b3c09c3c8307586fc7bdb864843f13c3685beabd0c74abf59e2892942ef2eba2dcc5c89e2df1daef551685eea805df036  lftp-4.9.1.tar.lz
"
