# SliTaz package receipt. PACKAGE="groff" VERSION="1.22.4" CATEGORY="utilities" TAGS="formatting" SHORT_DESC="The GNU troff text-formatting system." MAINTAINER="rocky@slitaz.org" LICENSE="GPL3" WEB_SITE="https://www.gnu.org/software/groff/groff.html" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" BUILD_DEPENDS="ghostscript texinfo" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { touch doc/gnu.eps ./configure \ --without-x \ $CONFIGURE_ARGS && make -j 1 && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib $fs/usr cp -a $install/usr/share/groff $fs/usr/share }