# Maintainer: PktSurf <smlinux@pktsurf.in>
app=groff
version=1.22.2
build=1sml
homepage="https://www.gnu.org/software/groff/"
download="https://ftp.gnu.org/gnu/groff/groff-$version.tar.gz"
desc="GNU replacement for nroff and troff text formatters"
requires="gcc-libs perl"

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

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

build() {
  ./configure \
    --prefix= \
    --without-x

  make 
  make install DESTDIR=$pkg 

  cp COPYING FDL LICENSES $pkgdocs/

  mkfinalpkg
}

sha512sums="
c379309a795f120b4b02d10765797d591be1fd938ac0c822f1e29ac8fb4b8e0a84c55e11c66febf4078f03bd981e8cc532b817a0dd7cf9614774e24741aed034  groff-1.22.2.tar.lz
"
