diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 35 |
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d8be625d0856 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = tidy-html5-git + pkgdesc = A tool to tidy down your HTML5 code to a clean style + pkgver = 5.0.0.git_475.3f72b6e + pkgrel = 1 + url = https://github.com/htacg/tidy-html5 + arch = i686 + arch = x86_64 + license = custom + makedepends = git + makedepends = cmake + provides = tidy5 + conflicts = tidy-html5 + source = git://github.com/htacg/tidy-html5.git + md5sums = SKIP + +pkgname = tidy-html5-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..4da12836f0ad --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +pkg +*.pkg.tar.xz +*.tar.gz +src +tidy-html5 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a0d5b9c3651d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# 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_475.3f72b6e +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=('tidy5') +conflicts=('tidy-html5') +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/LICENSE.md $pkgdir/usr/share/licenses/$name/LICENSE.md + rm -rf $pkgdir/usr/include +} |