summaryrefslogtreecommitdiff
path: root/tidy/Pkgfile
blob: 264ea834e78c1cf3452d567afe34537bfc4b7b41 (plain)
    1 # Description: A tool to tidy down your HTML code to a clean style
    2 # URL: http://www.html-tidy.org/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: libxslt cmake
    5 
    6 name=tidy
    7 version=5.7.28
    8 commit=d1b906991a7587688d384b648c55731f9be52506
    9 release=1
   10 source=(https://github.com/htacg/tidy-html5/archive/$commit.tar.gz#/$name-$commit.tar.gz)
   11 
   12 build() {
   13 	[[ -e /usr/bin/ninja ]] && PKGMK_TIDY+=' -G Ninja'
   14 	cmake -S tidy-html5-$commit -B build $PKGMK_TIDY \
   15 		-D CMAKE_INSTALL_PREFIX=/usr \
   16 		-D CMAKE_BUILD_TYPE=Release \
   17 		-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
   18 		-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
   19 		-Wno-dev
   20 
   21 	cmake --build build
   22 	DESTDIR=$PKG cmake --install build
   23 
   24 	# Compatibility symlinks until everything is ported
   25 	ln -s tidybuffio.h $PKG/usr/include/buffio.h
   26 	ln -s tidyplatform.h $PKG/usr/include/platform.h
   27 }

Generated by cgit