APP=dialog
VERSION=1.3
BUILD=1sml
HOMEPAGE='https://invisible-island.net/archives/dialog/'
DESC="display dialog boxes from shell scripts"
REQUIRES="netbsd-curses"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION-20170509.tar.?z
  cd "$APP-$VERSION-20170509"
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --bindir=/bin \
    --sysconfdir=/etc \
    --disable-nls \
    --with-shared \
    --with-x 

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
0cfdef91212009306101a91745183639a103d5b07d33d47601197fd95431ed9187eb38b0cd75537a91d98d35c9be0c92655e33ec4670d496bf9f6cc17701ee87  dialog-1.3-20170509.tar.lz
"
