blob: 6352cd452dad6ee5e98b67071ff44f49b51a0ad4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
}
|