summaryrefslogtreecommitdiff
path: root/repo/tidyhtml
diff options
context:
space:
mode:
Diffstat (limited to 'repo/tidyhtml')
-rw-r--r--repo/tidyhtml/tidyhtml.xibuild31
1 files changed, 31 insertions, 0 deletions
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
+}
+