APP=calcurse
VERSION=4.0.0
BUILD=1sml
HOMEPAGE="https://calcurse.org/"
DOWNLOAD="https://calcurse.org/files/calcurse-4.0.0.tar.gz"
DESC="text-based calendar and scheduling application"
REQUIRES="netbsd-curses"

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

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

  ./configure \
    --prefix="" 

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
a34b78437398160124d59e706aab2ff460fb726ad208ff05e8a2c404a21d9ab8b460aff9499eba239ccf82cf93dd0cf96d52ef22f597272e6d85c2ec6d5e3a3d  calcurse-4.0.0.tar.lz
"
