Package Details: tidy-html5-git 5.0.0.git_1566.8e70d4d-1

Git Clone URL: https://aur.archlinux.org/tidy-html5-git.git (read-only, click to copy)
Package Base: tidy-html5-git
Description: A tool to tidy down your HTML5 code to a clean style
Upstream URL: https://github.com/htacg/tidy-html5
Licenses: custom
Conflicts: tidy-html5, tidyhtml
Provides: tidy, tidyhtml
Submitter: bugix
Maintainer: kugland
Last Packager: kugland
Votes: 17
Popularity: 0.000000
First Submitted: 2011-11-23 10:48 (UTC)
Last Updated: 2021-04-12 20:52 (UTC)

Dependencies (2)

Required by (711)

Sources (1)

Latest Comments

tuxsavvy commented on 2021-08-16 16:01 (UTC)

Hi, thanks for maintaining this package. There are a number of issues that I want to point out: * Version 5.0.0 is outdated, the latest released version is 5.8.0 as of writing, * I do not recommend fixing it to version 5.0.0 in pkgver() {}, * source=() should probably point to https instead of git. As such I have addressed it with the following in a patch:

--- PKGBUILD.orig
+++ PKGBUILD
@@ -2,7 +2,7 @@
 # Previous maintainer: Martin Imobersteg <martin.imobersteg@gmail.com>
 pkgname=tidy-html5-git
 name=tidy-html5
-pkgver=5.0.0.git_1566.8e70d4d
+pkgver=5.9.9.next.r0.gc8fbde5
 pkgrel=1
 pkgdesc="A tool to tidy down your HTML5 code to a clean style"
 url="https://github.com/htacg/tidy-html5"
@@ -12,13 +12,12 @@
 makedepends=('git' 'cmake')
 provides=('tidy' 'tidyhtml')
 conflicts=('tidy-html5' 'tidyhtml')
-source=('git://github.com/htacg/tidy-html5.git')
+source=('git+https://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)
+    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
 }

 build() {

Besides, this patch should make it follow the directives as mentioned here, https://wiki.archlinux.org/title/VCS_package_guidelines#VCS_sources

arthru commented on 2016-01-18 07:52 (UTC)

@askr : just done !

arthru commented on 2015-11-25 10:08 (UTC)

Hi, I just uploaded the suggested changes. Thanks @aksr and @nurfz !

nurfz commented on 2015-11-22 04:59 (UTC)

They moved the LICENCE.md to the README/ directory -> build fails with: -- Installing: /home/jakob/aur/tidy-html5-git/pkg/tidy-html5-git/usr/share/man/man1/tidy.1 install: cannot stat ‘/home/jakob/aur/tidy-html5-git/src/tidy-html5/LICENSE.md’: No such file or directory ==> ERROR: A failure occurred in package(). Aborting...

arthru commented on 2015-07-02 08:31 (UTC)

I tried to override binarys name in build but it did not work (I am not that familiar with cmake...). So for now, just marking that the package conflicts with tidyhtml...

commented on 2015-07-01 12:02 (UTC)

tidy-html5 5.0.0 now provides "tidy" binary instead of "tidy5" and conflicts with old tidyhtml package from official repos

arthru commented on 2015-05-04 14:47 (UTC)

Indeed, the latest tags on tidy-html5 repo made invalid version. So I just used @cirk2 proposal. Please consider using https://aur.archlinux.org/packages/tidy-html5 package for the latest tagged version.

cirk2 commented on 2015-05-01 08:11 (UTC)

Your pkgver() creates invalid versions (Hyphens are not allowed) Try: echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) or: echo 5.0.0.git_$(git rev-list --count HEAD).$(git rev-parse --short HEAD)

arthru commented on 2015-03-25 09:17 (UTC)

@yan12125 : I've finally found a version somewhere in the code, so I set that and appended git revision...

arthru commented on 2015-03-19 19:47 (UTC)

Well, the difficult thing is that there is no a upstream version for that...

yan12125 commented on 2015-03-19 18:52 (UTC)

Please add the pkgver() function.

arthru commented on 2015-03-04 14:50 (UTC)

I've adopted and updated the package. Enjoy !

bugix commented on 2015-03-01 11:04 (UTC)

Thanks. Please adopt if you like.

erholst commented on 2015-02-28 20:10 (UTC)

It's now using cmake: #-------------------- # Maintainer: Martin Imobersteg <martin.imobersteg@gmail.com> pkgname=tidy-html5-git name=tidy-html5 pkgver=4.9.17 pkgrel=1 pkgdesc="A tool to tidy down your HTML5 code to a clean style" url="https://github.com/w3c/tidy-html5" license=('custom') arch=('i686' 'x86_64') depends=() makedepends=('git' 'cmake') conflicts=('tidyhtml') provides=('tidyhtml') replaces=('tidyhtml') source=('git://github.com/w3c/tidy-html5.git') md5sums=('SKIP') build() { cd "$srcdir/$name/build/cmake" cmake ../.. -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd "$srcdir/$name/build/cmake" make DESTDIR="$pkgdir/" install install -Dm644 ../../LICENSE.md $pkgdir/usr/share/licenses/$name/LICENSE.md } #--------------------

bugix commented on 2013-11-18 09:04 (UTC)

I updated the PKGBUILD to the new git-package style. Won't change too much probably.

sg0 commented on 2013-11-16 23:17 (UTC)

Thanks for your package! Would it be possible for you to update it to the latest git version, since there have been quite some fixes and small channges from April to August 2012?!

bugix commented on 2012-04-02 08:03 (UTC)

Done, thanks!

evnu commented on 2012-03-30 13:02 (UTC)

The file license was moved to the root directory of the source, so packaging fails. Please change htmldoc/license.html to license.html in package().