app=rdesktop
version=1.9.0
build=1sml
homepage="http://www.rdesktop.org"
download="https://github.com/rdesktop/rdesktop/releases/download/v1.9.0/rdesktop-1.9.0.tar.gz"
desc="Remote Desktop Protocol (RDP) client to connect to Microsoft RDP Servers"
requires="zlib nettle alsa-lib libao libsamplerate libxcursor xrandr libxrandr"

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

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  ./bootstrap
  ./configure \
    --prefix="" \
    --disable-credssp \
    --disable-smartcard \
    $builddist

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
e16b5cf61a70b14458eb870f772bc7635857f3822fde5ab288ceb30e178494120fcceac97f7d23fb771260eccf1985386d4702611cd150cfb8a4cac7859a2620  rdesktop-1.9.0.tar.lz
"
