# Maintainer: David Macek <david.macek.0@gmail.com>

# todo ask author about license

_realname=putty-ssh
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.0
pkgrel=3
pkgdesc="A wrapper around plink with some nice features (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64')
url="http://www.wischik.com/lu/programmer/unison-ssh.html"
license=('unknown')
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
             "unzip")
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
         "${MINGW_PACKAGE_PREFIX}-putty")
source=("http://www.wischik.com/lu/programmer/unison-ssh.zip")
sha256sums=('2abe49c6df1697de2a31c30d60e680c0a3e5180aa181576250901bda28f63924')

prepare() {
  true
}

build() {
  cd "${srcdir}"

  g++ -O2 -o plink-ssh.exe ssh.cpp
}

package() {
  cd "${srcdir}"
  install -D -m755 plink-ssh.exe "${pkgdir}"${MINGW_PREFIX}/bin/plink-ssh.exe
}
