26 lines
735 B
Plaintext
26 lines
735 B
Plaintext
# Description: A tool to tidy down your HTML code to a clean style
|
|
# URL: https://www.html-tidy.org/
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
|
# Depends on: libxslt
|
|
|
|
name=tidy
|
|
version=5.8.0
|
|
release=1
|
|
source=(https://github.com/htacg/tidy-html5/archive/$version/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
cmake -S tidy-html5-$version -B build -G Ninja \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
-Wno-dev
|
|
|
|
ninja -C build -j ${JOBS:-1}
|
|
DESTDIR=$PKG ninja -C build install
|
|
|
|
# Compatibility symlinks until everything is ported
|
|
ln -s tidybuffio.h $PKG/usr/include/buffio.h
|
|
ln -s tidyplatform.h $PKG/usr/include/platform.h
|
|
}
|