description="Mobile shell, surviving disconnects with local echo and line editing."
url="http://mosh.mit.edu/"

contributors="Alienus,Fanch,Greg,Tnut"
packager="spiky <spiky@nutyx.org>"

makedepends=(protobuf ncurses zlib openssh perl-io-tty libutempter)

name=mosh
version=1.4.0

source=(https://github.com/mobile-shell/$name/archive/$name-$version.tar.gz)

build() {
  
  cd $name-$name-$version

  ./autogen.sh
  ./configure --prefix=/usr \
              --sysconfdir=/etc/mosh

  make
  make DESTDIR=$PKG install
  install -Dm644 "conf/bash-completion/completions/$name" \
    "$PKG/usr/share/bash-completion/completions/$name"
}
