2019-11-30 17:01:31 +11:00
|
|
|
# Description: A tool to tidy down your HTML code to a clean style
|
2021-03-19 19:38:34 +11:00
|
|
|
# URL: https://www.html-tidy.org/
|
2023-03-03 16:14:00 -05:00
|
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
|
|
|
# Depends on: libxslt
|
2007-01-30 16:06:17 +11:00
|
|
|
|
|
|
|
name=tidy
|
2021-08-22 17:49:14 +02:00
|
|
|
version=5.8.0
|
2007-01-30 16:06:17 +11:00
|
|
|
release=1
|
2021-08-22 17:49:14 +02:00
|
|
|
source=(https://github.com/htacg/tidy-html5/archive/$version/$name-$version.tar.gz)
|
2007-01-30 16:06:17 +11:00
|
|
|
|
|
|
|
build() {
|
2023-03-03 16:14:00 -05:00
|
|
|
cmake -S tidy-html5-$version -B build -G Ninja \
|
2020-11-08 12:46:43 +00:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-07 00:06:47 +00:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-07 17:00:00 +00:00
|
|
|
-Wno-dev
|
2007-01-30 16:06:17 +11:00
|
|
|
|
2023-03-03 16:14:00 -05:00
|
|
|
ninja -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG ninja -C build install
|
2019-11-30 17:01:31 +11:00
|
|
|
|
|
|
|
# Compatibility symlinks until everything is ported
|
|
|
|
ln -s tidybuffio.h $PKG/usr/include/buffio.h
|
|
|
|
ln -s tidyplatform.h $PKG/usr/include/platform.h
|
2007-01-30 16:06:17 +11:00
|
|
|
}
|