SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "html2text"

# SliTaz package receipt.

PACKAGE="html2text"
VERSION="2.0.0"
CATEGORY="utilities"
SHORT_DESC="Command line utility that converts HTML into plain text."
MAINTAINER="al.bobylev@gmail.com"
LICENSE="GPL"
WEB_SITE="http://www.mbayer.de/html2text/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/grobian/$PACKAGE/archive/v$VERSION.tar.gz"

DEPENDS="gcc83-lib-base"
BUILD_DEPENDS="gcc83"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/grobian/html2text/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    # http://www.mbayer.de/html2text/downloads/patch-utf8-html2text-1.3.2a.diff
#    patch -p1 -i $stuff/patch-utf8-html2text-1.3.2a.diff

    export    CC=gcc-83
    export    CXX=g++-83

    ./configure $CONFIGURE_ARGS
    sed -i 's|/usr/local|/usr|'    Makefile
    make    DESTDIR=$DESTDIR
    make    install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)