pkgname=groff
pkgver=1.23.0
pkgdesc='GNU troff text-formatting system'
arch=('x86_64')
homepage='https://www.gnu.org/software/groff/groff.html'
license=('GPL-3.0-or-later')
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
md5sums=("5e4f40315a22bb8a158748e7d5094c7d")

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_build() {
  PAGE=A4 ./configure --prefix=/usr
  make
}

src_check() {
  make check
}

src_install() {
  make DESTDIR="${pkgdir}" install
}
