SUMMARY="A Free Telnet/SSH Client"
DESCRIPTION="PPuTTY is a free implementation of SSH and Telnet for Windows \
and Unix platforms, along with an xterm terminal emulator.\
LEGAL WARNING: Use of PuTTY, PSCP, PSFTP and Plink is illegal in countries \
where encryption is outlawed. We believe it is legal to use PuTTY, PSCP, \
PSFTP and Plink in England and Wales and in many other countries, but we \
are not lawyers, and so if in doubt you should seek legal advice before \
downloading it. You may find useful information at cryptolaw.org, which \
collects information on cryptography laws in many countries, but we can't \
vouch for its correctness. \
Use of the Telnet-only binary (PuTTYtel) is unrestricted by any \
cryptography laws."
HOMEPAGE="https://www.chiark.greenend.org.uk/~sgtatham/putty/"
COPYRIGHT="1997-2017 Simon Tatham et al."
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://the.earth.li/~sgtatham/putty/latest/putty-$portVersion.tar.gz"
CHECKSUM_SHA256="bb8aa49d6e96c5a8e18a057f3150a1695ed99a24eef699e783651d1f24e7b0be"
PATCHES="putty-$portVersion.patchset"

ARCHITECTURES="all"

PROVIDES="
	putty
	cmd:plink
	cmd:pscp
	cmd:psftp
	cmd:puttygen
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoconf
	cmd:awk
	cmd:gcc
	cmd:make
	"

BUILD()
{
	autoreconf
	./configure --bindir=$binDir --mandir=$manDir
	make $jobArgs
}

INSTALL()
{
	make install
}
