1 # Maintainer: Martin Imobersteg <martin.imobersteg@gmail.com>
5 pkgdesc="A tool to tidy down your HTML5 code to a clean style"
6 url="https://github.com/w3c/tidy-html5"
11 conflicts=('tidyhtml')
15 _gitroot="https://github.com/w3c/tidy-html5.git"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_gitname-build"
33 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34 cd "$srcdir/$_gitname-build"
36 sh build/gnuauto/setup.sh
37 ./configure --prefix=/usr
42 cd "$srcdir/$_gitname-build"
43 make DESTDIR="$pkgdir/" install
44 rm $pkgdir/usr/lib/libtidy.la
45 install -Dm644 htmldoc/license.html $pkgdir/usr/share/licenses/$pkgname/license.html