summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bdd02af7a0ec380a5ca5827c46c46bc63a535a15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Arthur Vuillard <arthur@hashbang.fr>
# Previous maintainer: Martin Imobersteg <martin.imobersteg@gmail.com>
pkgname=tidy-html5-git
name=tidy-html5
pkgver=5.0.0.git_729.ce6c7de
pkgrel=1
pkgdesc="A tool to tidy down your HTML5 code to a clean style"
url="https://github.com/htacg/tidy-html5"
license=('custom')
arch=('i686' 'x86_64')
depends=()
makedepends=('git' 'cmake')
provides=('tidy' 'tidyhtml')
conflicts=('tidy-html5' 'tidyhtml')
source=('git://github.com/htacg/tidy-html5.git')
md5sums=('SKIP')

pkgver(){
    cd $srcdir/$name

    echo 5.0.0.git_$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd "$srcdir/$name/build/cmake"
  cmake ../.. -DCMAKE_INSTALL_PREFIX=$pkgdir/usr
  make
}

package() {
  cd "$srcdir/$name/build/cmake"
  make install
  install -Dm644 $srcdir/$name/README/LICENSE.md $pkgdir/usr/share/licenses/$name/LICENSE.md
}