# SliTaz package receipt.
PACKAGE="tidy-html5"
VERSION="5.8.0"
CATEGORY="development"
SHORT_DESC="The granddaddy of HTML tools, with support for modern standards."
MAINTAINER="al.bobylev@gmail.com"
LICENSE="W3C"
WEB_SITE="https://www.html-tidy.org/"
REPOLOGY="tidy"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/htacg/$PACKAGE/archive/$VERSION.tar.gz"
DEPENDS=""
BUILD_DEPENDS="cmake libxslt"
current_version()
{
wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
}
# Rules to configure and make the package.
compile_rules()
{
cd build/cmake &&
cmake ../.. \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release &&
make &&
make install
}
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
cook_copy_folders bin
}