# Maintainer: PktSurf <smlinux@pktsurf.in>
app=calcurse
version=4.0.0
build=1sml
homepage="https://calcurse.org/"
download="https://calcurse.org/files/calcurse-$version.tar.gz"
desc="text-based calendar and scheduling application"
requires="netbsd-curses"

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

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

build() {
  ./configure \
    --prefix="" 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

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