2 # Contributor: eric <eric@archlinux.org>
3 # Contributor: Markus Meissner <markus@meissna.de>
7 _commit=9f8d957e4d9c164b0aea10a36c7933d67517abb1
9 pkgdesc="A tool to tidy down your HTML code to a clean style"
11 url="https://www.html-tidy.org/"
14 makedepends=(cmake libxslt)
18 source=("$pkgname-$_commit.tar.gz::https://github.com/htacg/tidy-html5/archive/$_commit.tar.gz")
19 sha512sums=('085da1bc97ab20a65d1104bd13e39ba7eb7a51407553e9237e8efda0a2c3b6efcb2e957a670731482ac17b639f12fe59a1f52740e82d4367410fe41e62afc8a2')
22 mv tidy-html5-{$_commit,$pkgver}
28 export CFLAGS+=" -ffat-lto-objects"
29 export CXXFLAGS+=" -ffat-lto-objects"
30 cmake ../tidy-html5-$pkgver \
31 -DCMAKE_INSTALL_PREFIX=/usr \
32 -DCMAKE_BUILD_TYPE=Release
38 make DESTDIR="$pkgdir" install
40 # Compatibility symlinks until everything is ported
41 ln -s tidybuffio.h "$pkgdir"/usr/include/buffio.h
42 ln -s tidyplatform.h "$pkgdir"/usr/include/platform.h
44 install -Dm644 "$srcdir"/$pkgname-html5-$pkgver/README/LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE