APP=tmux
VERSION=2.8
BUILD=1sml
HOMEPAGE="https://github.com/tmux/tmux"
DOWNLOAD="https://github.com/tmux/tmux/archive/refs/tags/2.8.tar.gz"
DESC="terminal multiplexer, alternative to GNU screen"
REQUIRES="netbsd-curses libevent"

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

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

  ./configure \
    --prefix="" \
    --sysconfdir=/etc 

  make
  make install DESTDIR=$PKG

  cp COPYING README TODO $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
0efe5498f63a234995c02b56b5bb15c439d1ca7a0312b6e3ab12fe538b012bca8e06374fc09bb83e54c78ff10264c5a971a9ca10e7153998bf29703809e1521b  tmux-2.8.tar.lz
"
