blob: fda44f894de25b21895aec9b85d10dff8e66a4b9 (
plain)
1 # Description: A tool to tidy down your HTML code to a clean style
2 # URL: https://www.html-tidy.org/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: libxslt cmake
5
6 name=tidy
7 version=5.8.0
8 release=1
9 source=(https://github.com/htacg/tidy-html5/archive/$version/$name-$version.tar.gz)
10
11 build() {
12 [[ -e /usr/bin/ninja ]] && PKGMK_TIDY+=' -G Ninja'
13 cmake -S tidy-html5-$version -B build $PKGMK_TIDY \
14 -D CMAKE_INSTALL_PREFIX=/usr \
15 -D CMAKE_BUILD_TYPE=Release \
16 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
17 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
18 -Wno-dev
19
20 cmake --build build
21 DESTDIR=$PKG cmake --install build
22
23 # Compatibility symlinks until everything is ported
24 ln -s tidybuffio.h $PKG/usr/include/buffio.h
25 ln -s tidyplatform.h $PKG/usr/include/platform.h
26 }
|