Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

build: add lib tidy-html5 #2163

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions tidy-html5/linglong.yaml
Original file line number Diff line number Diff line change
@@ -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
24 changes: 24 additions & 0 deletions tidy-html5/patches/0001-fix-path.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From 8e3678f57b7583639b4a8d8585ee177398c9901f Mon Sep 17 00:00:00 2001
From: van <[email protected]>
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

Loading