# $Id: PKGBUILD 230776 2015-02-04 23:00:34Z bluewind $ # Maintainer: # Contributor: eric # Contributor: Markus Meissner pkgname=tidy pkgver=5.6.0 pkgrel=1 pkgdesc="A tool to tidy down your HTML code to a clean style" arch=(x86_64) url="http://www.html-tidy.org/" license=(custom) depends=(glibc) makedepends=(cmake libxslt) conflicts=(tidyhtml) provides=(tidyhtml) replaces=(tidyhtml) source=("https://github.com/htacg/tidy-html5/archive/$pkgver.tar.gz") md5sums=('85c8a163d9ece6a02fe12bc9bddbc455') prepare() { mkdir -p build } build() { cd build cmake ../tidy-html5-$pkgver \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release make } package() { cd build make DESTDIR="$pkgdir" install # Compatibility symlinks until everything is ported ln -s tidybuffio.h "$pkgdir"/usr/include/buffio.h ln -s tidyplatform.h "$pkgdir"/usr/include/platform.h install -Dm644 "$srcdir"/$pkgname-html5-$pkgver/README/LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }