From f85104ec26297f9bdd8282c2e9e4389504eedd18 Mon Sep 17 00:00:00 2001 From: van <751890223@qq.com> Date: Thu, 9 May 2024 23:09:02 +0800 Subject: [PATCH] build: add lib tidy-html5 The granddaddy of HTML tools, with support for modern standards log: add lib --- tidy-html5/linglong.yaml | 24 ++++++++++++++++++++++++ tidy-html5/patches/0001-fix-path.patch | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 tidy-html5/linglong.yaml create mode 100644 tidy-html5/patches/0001-fix-path.patch diff --git a/tidy-html5/linglong.yaml b/tidy-html5/linglong.yaml new file mode 100644 index 000000000..2daee880b --- /dev/null +++ b/tidy-html5/linglong.yaml @@ -0,0 +1,24 @@ +package: + id: tidy-html5 + name: tidy-html5 + version: 5.8.0.2 + kind: lib + description: | + The granddaddy of HTML tools, with support for modern standards + +runtime: + id: org.deepin.Runtime + version: 23.0.0 + +source: + kind: git + url: https://github.com/htacg/tidy-html5.git + commit: d08ddc2860aa95ba8e301343a30837f157977cba + patch: patches/0001-fix-path.patch + +variables: + extra_args: | + -DLIB_INSTALL_DIR=${PREFIX}/lib/${TRIPLET} + +build: + kind: cmake \ No newline at end of file diff --git a/tidy-html5/patches/0001-fix-path.patch b/tidy-html5/patches/0001-fix-path.patch new file mode 100644 index 000000000..8caa5a038 --- /dev/null +++ b/tidy-html5/patches/0001-fix-path.patch @@ -0,0 +1,24 @@ +From 8e3678f57b7583639b4a8d8585ee177398c9901f Mon Sep 17 00:00:00 2001 +From: van <751890223@qq.com> +Date: Sat, 11 May 2024 23:03:54 +0800 +Subject: [PATCH] fix + +--- + tidy.pc.cmake.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tidy.pc.cmake.in b/tidy.pc.cmake.in +index 7d819f1..6e9688a 100644 +--- a/tidy.pc.cmake.in ++++ b/tidy.pc.cmake.in +@@ -1,6 +1,6 @@ + prefix=@CMAKE_INSTALL_PREFIX@ + exec_prefix=${prefix} +-libdir=${exec_prefix}/@LIB_INSTALL_DIR@ ++libdir=@LIB_INSTALL_DIR@ + includedir=${prefix}/@INCLUDE_INSTALL_DIR@ + + Name: @LIB_NAME@ +-- +2.33.1 +