app=netbsd-curses
version=0.3.2
build=1sml
homepage="http://ftp.barfooze.de/pub/sabotage/tarballs/"
download="https://ftp.barfooze.de/pub/sabotage/tarballs/netbsd-curses-$version.tar.xz"
desc="drop-in replacement for the bloated ncurses library with wide character support"
requires="gcc-libs"

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

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

  cat << EOF > config.mak
CC=gcc
HOSTCC=gcc
AR=ar
RANLIB=ranlib
PREFIX=""
DESTDIR=$pkg
EOF

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
225d0320f9968bd9b543b849258658e25ff72a051c96d182282eb30bcf0060ce8b158ec4eb7763560a3448c22346b00af1d1c0a3d236b2c8e07dc9f59c33a488  netbsd-curses-0.3.2.tar.lz
"
