# Maintainer: PktSurf <smlinux@pktsurf.in>
app=minicom
version=2.7.1
build=1sml
homepage="https://salsa.debian.org/minicom-team/minicom"
download="https://salsa.debian.org/minicom-team/minicom/-/archive/v$version/minicom-v$version.tar.bz2"
desc="Text-mode utility for communicating with serial devices"
requires="netbsd-curses"

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

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

  applypatch $srcdir/fix-includes.patch
}

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
90a71513ba6c46becb858aedd784d1ef513cd4d959858230c731213adec053fcb1c9a42ae8afc2aad1202c0218de8f9f5f8ed5f0fd5fab338dcde82052a0d3e8  minicom-2.7.1.tar.lz
5acff3efb0b8b02333291722044d7c473bf19eec8a26e66c0e0f41895f3e3f071dff13515ec20f7ce17368732e3674f0a42b38602e61b04e9cd70e61012641ff  fix-includes.patch
"
