#!/bin/sh NAME="tidyhtml" DESC="Tool to tidy down your HTML code to a clean style" MAKEDEPS=" cmake libxslt" PKG_VER=5.8.0 SOURCE="https://github.com/htacg/tidy-html5/archive/$PKG_VER.tar.gz" build() { cmake -B build \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=None \ -DSUPPORT_LOCALIZATIONS=OFF \ -DTIDY_CONSOLE_SHARED=ON \ $CMAKE_CROSSOPTS . cmake --build build } check() { cd build ./tidy --help > /dev/null } package() { cd .. DESTDIR="$PKG_DEST" cmake --install build }