APP=groff
VERSION=1.22.2
BUILD=1sml
HOMEPAGE='https://www.gnu.org/software/groff/'
DOWNLOAD='https://ftp.gnu.org/gnu/groff/groff-1.22.2.tar.gz'
DESC="GNU replacement for nroff and troff text formatters"
REQUIRES="gcc-libs perl"

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

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

  ./configure \
    --prefix="" \
    --without-x

  make 
  make install DESTDIR=$PKG 

  cp COPYING FDL LICENSES $PKGDOCS/

  mkfinalpkg
}

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