# Maintainer: Alexey Pavlov <alexpux@gmail.com>

pkgname=sshpass
pkgver=1.10
pkgrel=1
pkgdesc='Fool ssh into accepting an interactive password non-interactively'
arch=('i686' 'x86_64')
url='https://sourceforge.net/projects/sshpass/'
msys2_references=(
  "anitya: 12961"
)
groups=('net-utils')
license=('GPL')
depends=('openssh')
makedepends=('autotools' 'gcc')
source=("https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz")
sha256sums=('ad1106c203cbb56185ca3bad8c6ccafca3b4064696194da879f81c8d7bdfeeda')

build() {
  cd $pkgname-$pkgver
  ./configure --build=${CHOST} --prefix=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
