forked from ports/contrib
29 lines
675 B
Plaintext
29 lines
675 B
Plaintext
# Description: A tool to tidy down your HTML code to a clean style
|
|
# URL: http://www.html-tidy.org/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: libxslt cmake
|
|
|
|
name=tidy
|
|
version=5.7.16
|
|
commit=5f7e367cb54563dabda4bf4e3c11c6ecc68a0fa3
|
|
release=1
|
|
source=(https://github.com/htacg/tidy-html5/archive/$commit.tar.gz#/$name-$commit.tar.gz)
|
|
|
|
build() {
|
|
cd tidy-html5-$commit
|
|
|
|
mkdir -p build
|
|
cd build
|
|
|
|
cmake .. \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
make
|
|
make DESTDIR=$PKG 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
|
|
}
|