### this file is sourced not run
PKGVER=4.9.2
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=lftp-$PKGVER.tar.xz
MD5SUM=b3a272ecb7a2b60e3827776f90ffb2f3
SRC_URL=http://lftp.yar.ru/ftp/$TARBALL
BUNDLE=

SLACKREQ='libreadline libidn2 libgnutls'
SLACKDESC="lftp: lftp $PKGVER (File transfer utility)  
lftp:  
lftp: LFTP is a sophisticated file transfer program supporting a number 
lftp: of network protocols (ftp, http, sftp, fish, torrent).
lftp: It has job control, bookmarks, a built-in mirror command, and can 
lftp: transfer several files in parallel.
lftp: 
lftp: https://lftp.tech/
lftp: 
lftp: 
lftp: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --disable-shared --disable-static \
	    --with-linux-crypto --with-pager=/usr/bin/less --with-libidn2"
	export LDFLAGS='-L/usr/lib64' &&
	pkg_build_autoconf &&
	pkg_build_slackdesc &&

	# remove libs
	rm /usr/$LIBDIR/liblftp* &&

	# remove desktop-related stuff
	rm -f /usr/share/applications/lftp.desktop &&
	rm -r /usr/share/icons/ 
}


