APP=netbsd-curses
VERSION=0.3.1
BUILD=1sml
HOMEPAGE='http://ftp.barfooze.de/pub/sabotage/tarballs/'
DOWNLOAD=''
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="
60b6e5644e1d9b0b872f83411e731fae626e09749f783eb60633cb6712275db6087dd25b0375b667adb53031a67804da6f9dcd83ba7e165adc6ab39dd2b2f023  netbsd-curses-0.3.1.tar.lz
"
