contrib/tidy/Pkgfile

28 lines
842 B
Plaintext
Raw Normal View History

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/
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2019-11-30 07:01:31 +01:00
# Depends on: libxslt cmake
2007-01-30 06:06:17 +01:00
name=tidy
2021-05-06 14:48:27 +02:00
version=5.7.47
_commit=2c75207c5e9bb77bf7069ca091efef51e0af1d90
2007-01-30 06:06:17 +01:00
release=1
2021-03-19 09:38:34 +01:00
source=(https://github.com/htacg/tidy-html5/archive/$_commit.tar.gz#/$name-$_commit.tar.gz)
2007-01-30 06:06:17 +01:00
build() {
2020-11-08 13:46:43 +01:00
[[ -e /usr/bin/ninja ]] && PKGMK_TIDY+=' -G Ninja'
2021-03-19 09:38:34 +01:00
cmake -S tidy-html5-$_commit -B build $PKGMK_TIDY \
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
2020-11-07 18:00:00 +01:00
cmake --build build
DESTDIR=$PKG cmake --install build
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
}