2019-11-30 07:01:31 +01:00
|
|
|
# Description: A tool to tidy down your HTML code to a clean style
|
2021-03-19 09:38:34 +01:00
|
|
|
# URL: https://www.html-tidy.org/
|
2023-03-03 22:14:00 +01:00
|
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
|
|
|
# Depends on: libxslt
|
2007-01-30 06:06:17 +01:00
|
|
|
|
|
|
|
name=tidy
|
2021-08-22 17:49:14 +02:00
|
|
|
version=5.8.0
|
2007-01-30 06:06:17 +01: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 06:06:17 +01:00
|
|
|
|
|
|
|
build() {
|
2023-03-03 22:14:00 +01:00
|
|
|
cmake -S tidy-html5-$version -B build -G Ninja \
|
2020-11-08 13:46:43 +01:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-07 01:06:47 +01:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-07 18:00:00 +01:00
|
|
|
-Wno-dev
|
2007-01-30 06:06:17 +01:00
|
|
|
|
2023-03-03 22:14:00 +01:00
|
|
|
ninja -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG ninja -C build install
|
2019-11-30 07:01:31 +01: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 06:06:17 +01:00
|
|
|
}
|