# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		lrzsz
PKG_VERSION:=		0.12.20
PKG_RELEASE:=		1
PKG_MD5SUM:=		b5ce6a74abc9b9eb2af94dffdfd372a4
PKG_DESCR:=		X-Modem, Y-modem, Z-modem protocol handlers
PKG_SECTION:=		serial
PKG_URL:=		http://www.ohse.de/uwe/software/lrzsz.html
PKG_SITES:=		http://www.ohse.de/uwe/releases/

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,LRZSZ,lrzsz,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

INSTALL_STYLE:=		manual

CONFIGURE_ARGS+=	--without-libiconv-prefix \
			--without-libintl-prefix

do-install:
	${INSTALL_DIR} ${IDIR_LRZSZ}/usr/bin
	${CP} ${WRKBUILD}/src/lrz ${IDIR_LRZSZ}/usr/bin/
	${CP} ${WRKBUILD}/src/lsz ${IDIR_LRZSZ}/usr/bin/
	(cd ${IDIR_LRZSZ}/usr/bin; \
		ln -fs lrz lrx; \
		ln -fs lrz lrb; \
		ln -fs lsz lsx; \
		ln -fs lsz lsb; \
	);

include ${TOPDIR}/mk/pkg-bottom.mk
