contrib/tidy/Pkgfile

29 lines
675 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
# URL: http://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
2020-06-11 15:30:16 +02:00
version=5.7.28
commit=d1b906991a7587688d384b648c55731f9be52506
2007-01-30 06:06:17 +01:00
release=1
2019-11-30 07:01:31 +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() {
2019-11-30 07:01:31 +01:00
cd tidy-html5-$commit
2007-02-17 10:25:28 +01:00
2019-11-30 07:01:31 +01:00
mkdir -p build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
2007-01-30 06:06:17 +01:00
make
make DESTDIR=$PKG 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
}