From f29d569cd33a73da5ad675f43a34ad53c5cc9bc6 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 2 Feb 2023 14:10:02 +0000 Subject: Work --- repo/tidyhtml/tidyhtml.xibuild | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 repo/tidyhtml/tidyhtml.xibuild (limited to 'repo/tidyhtml') diff --git a/repo/tidyhtml/tidyhtml.xibuild b/repo/tidyhtml/tidyhtml.xibuild new file mode 100644 index 0000000..6352cd4 --- /dev/null +++ b/repo/tidyhtml/tidyhtml.xibuild @@ -0,0 +1,31 @@ +#!/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 +} + -- cgit v1.2.1