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
"
