app=mailcheck
version=1.91.2
build=1sml
homepage="http://mailcheck.sourceforge.net/"
download="https://sourceforge.net/projects/mailcheck/files/mailcheck/1.91.2/mailcheck_1.91.2.tar.gz"
desc="Utility to show read and unread emails inside user directories"
requires="musl"

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

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

  make 
  install -Dm 755 mailcheck $pkg/bin/mailcheck
  install -Dm 644 mailcheckrc $pkg/etc/mailcheckrc
  install -Dm 644 mailcheck.1 $pkg/share/man/man1/mailcheck.1

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
ec5b6014659c53b0b3f8989135e0cd7416fbb5cda87cb7ec038d43dea84e6fade0f60f13a9e4e5f8df1ae84677db6ff1fddc008a7df95e1836f408255e15d64a  mailcheck-1.91.2.tar.gz
"
