app=irssi
version=1.2.2
build=1sml
homepage="https://irssi.org"
download="https://github.com/irssi/irssi/archive/refs/tags/1.2.2.tar.gz"
desc="Modular, expandable text-mode IRC client" 
requires="netbsd-curses glib openssl perl"

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

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


  LDFLAGS="-lcurses -lterminfo" \
  ./configure \
    --prefix="" \
    --sysconfdir=/etc 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
1f11728a5fe521a4dcad90e8d6414f1980e5c3584b5356b049d850ac9c1c7a82a19886dc688b3df2079d5e69da99c0634bb0a2cb2217b52f866cc2868b2ed0f9  irssi-1.2.2.tar.lz
"
