39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
# Template file for 'groff'
|
|
pkgname=groff
|
|
version=1.23.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--without-x --disable-rpath"
|
|
hostmakedepends="perl bison ghostscript"
|
|
makedepends="zlib-devel"
|
|
short_desc="GNU troff text-formatting system"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://www.gnu.org/software/groff/groff.html"
|
|
changelog="https://git.savannah.gnu.org/cgit/groff.git/plain/NEWS"
|
|
distfiles="${GNU_SITE}/groff/groff-${version}.tar.gz"
|
|
checksum=6b9757f592b7518b4902eb6af7e54570bdccba37a871fddb2d30ae3863511c13
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" groff"
|
|
make_build_args+=" GROFFBIN=/usr/bin/groff GROFF_BIN_PATH=/usr/bin"
|
|
fi
|
|
|
|
post_install() {
|
|
# From Arch:
|
|
#
|
|
# Fix some issues when encoding to utf8 man pages
|
|
# The output chars don't match keyboard chars...
|
|
for f in man mdoc; do
|
|
cat ${FILESDIR}/site.tmac >> \
|
|
${DESTDIR}/usr/share/groff/site-tmac/${f}.local
|
|
done
|
|
}
|
|
|
|
groff-doc_package() {
|
|
short_desc+=" - documentation"
|
|
pkg_install() {
|
|
vmove usr/share/doc
|
|
}
|
|
}
|