mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
103 lines
2.7 KiB
Bash
103 lines
2.7 KiB
Bash
SUMMARY="A free Telnet/SSH client"
|
|
DESCRIPTION="PuTTY is a free implementation of SSH and Telnet for Windows \
|
|
and Unix platforms, along with an xterm terminal emulator.
|
|
|
|
The use of PuTTY, PSCP, PSFTP and Plink is illegal in countries where encryption is \
|
|
outlawed. If in doubt you should seek legal advice before downloading it.
|
|
The Telnet-only binary (PuTTYtel) is unrestricted by any cryptography laws."
|
|
HOMEPAGE="https://www.chiark.greenend.org.uk/~sgtatham/putty/"
|
|
COPYRIGHT="1997-2023 Simon Tatham et al."
|
|
LICENSE="MIT"
|
|
REVISION="2"
|
|
SOURCE_URI="https://the.earth.li/~sgtatham/putty/$portVersion/putty-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="2013c83a721b1753529e9090f7c3830e8fe4c80a070ccce764539badb3f67081"
|
|
PATCHES="putty-$portVersion.patchset"
|
|
ADDITIONAL_FILES="putty.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
putty$secondaryArchSuffix = $portVersion
|
|
cmd:pageant
|
|
cmd:plink
|
|
cmd:pscp
|
|
cmd:psftp
|
|
cmd:psusan
|
|
cmd:pterm
|
|
cmd:putty
|
|
cmd:puttygen
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libatk_1.0$secondaryArchSuffix
|
|
lib:libcairo$secondaryArchSuffix
|
|
lib:libgdk_pixbuf_2.0$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libgtk_3$secondaryArchSuffix
|
|
lib:libharfbuzz$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libpango_1.0$secondaryArchSuffix
|
|
lib:libX11$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgtk_3${secondaryArchSuffix}
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ninja
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage putty$secondaryArchSuffix \
|
|
"$prefix"/bin/pageant \
|
|
"$prefix"/bin/plink \
|
|
"$prefix"/bin/pscp \
|
|
"$prefix"/bin/psftp \
|
|
"$prefix"/bin/psusan \
|
|
"$prefix"/bin/pterm \
|
|
"$prefix"/bin/putty \
|
|
"$prefix"/bin/puttygen
|
|
|
|
BUILD()
|
|
{
|
|
cmake -S . -B build -G Ninja \
|
|
$cmakeDirArgs \
|
|
-DCMAKE_C_FLAGS="-DXDG_DEFAULT" \
|
|
-DCMAKE_EXE_LINKER_FLAGS="-lnetwork" \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
cmake --build build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cmake --install build
|
|
|
|
if [ $effectiveTargetArchitecture = x86 ]; then
|
|
mv $binDir/* $prefix/bin/
|
|
fi
|
|
|
|
mkdir -p $appsDir
|
|
ln -s $prefix/bin/putty $appsDir/PuTTY
|
|
|
|
local APP_SIGNATURE="application/x-vnd.putty"
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
#local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
local MINOR="0"
|
|
local LONG_INFO="$SUMMARY"
|
|
sed \
|
|
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
$portDir/additional-files/putty.rdef.in > $sourceDir/putty.rdef
|
|
addResourcesToBinaries $sourceDir/putty.rdef $appsDir/PuTTY
|
|
|
|
addAppDeskbarSymlink $appsDir/PuTTY
|
|
}
|