# Maintainer: PktSurf <smlinux@pktsurf.in>
app=autossh
version=1.4g
build=2sml
homepage="http://www.harding.motd.ca/autossh/"
download="https://www.harding.motd.ca/autossh/autossh-$version.tgz"
desc="Utility to automatically restart SSH sessions and tunnels"
requires="musl"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tgz
  cd $app-$version 
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix=""

  make
  install -Dm 755 autossh $pkg/bin/autossh
  install -Dm 644 autossh.1 $pkg/share/man/man1/autossh.1

  cp $srcdir/LICENSE autossh.host rscreen $pkgdocs/

  mkfinalpkg
}

sha512sums="
499b560d978736f4e764d5d828282fdaba1cbf94811ae6be0be5434d9c1cdc6ca5513d728b6372aa243843cb1b91e61cfc5fdeb77ddb0b6a7ce027218ba67466  autossh-1.4g.tgz
"
