SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "a2ps"

# SliTaz package receipt.

PACKAGE="a2ps"
VERSION="4.14"
CATEGORY="office"
SHORT_DESC="Any to PostScript filter."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL3"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.gnu.org/software/a2ps/"
WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
TAGS="ps print convert"

BUILD_DEPENDS="gperf"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    # Be busybox sort compatible
    sed -i 's/+0 -1/-k 1,2/' afm/make_fonts_map.sh
    ./configure --sysconfdir=/etc $CONFIGURE_ARGS &&
    make 2>&1 | grep -v fonts.map.new &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/* $fs
    rm -rf $fs/usr/lib $fs/usr/include $fs/usr/share/man $fs/usr/share/info
    sed -i 's/^FileCommand/#FileCommand/' $fs/etc/a2ps.cfg
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)