Date: Friday, June 11, 2021 @ 19:58:26 Author: polyzen Revision: 962861
archrelease: copy trunk to community-any Added: htmlhint/repos/community-any/PKGBUILD (from rev 962860, htmlhint/trunk/PKGBUILD) Deleted: htmlhint/repos/community-any/PKGBUILD ----------+ PKGBUILD | 82 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 41 insertions(+), 41 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-06-11 19:57:58 UTC (rev 962860) +++ PKGBUILD 2021-06-11 19:58:26 UTC (rev 962861) @@ -1,41 +0,0 @@ -# Maintainer: Daniel M. Capella <poly...@archlinux.org> - -_name=HTMLHint -pkgname=htmlhint -pkgver=0.15.0 -pkgrel=1 -pkgdesc='Static Code Analysis Tool for your HTML' -arch=('any') -url=https://htmlhint.com/ -license=('MIT') -depends=('nodejs') -makedepends=('git' 'npm') -source=("git+https://github.com/htmlhint/HTMLHint.git#tag=v$pkgver") -b2sums=('SKIP') - -build() { - cd $_name - npm ci - npm run build -} - -check() { - cd $_name - npm test -} - -package() { - cd $_name - - npm prune --production - - install -d "$pkgdir"/usr/bin - ln -s ../lib/node_modules/$pkgname/bin/$pkgname "$pkgdir"/usr/bin/$pkgname - install -Dt "$pkgdir"/usr/lib/node_modules/$pkgname/bin bin/$pkgname - cp -r dist node_modules package.json "$pkgdir"/usr/lib/node_modules/$pkgname - install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname \ - {CHANGELOG,CONTRIBUTING,README}.md - install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE.md -} - -# vim:set ts=2 sw=2 et: Copied: htmlhint/repos/community-any/PKGBUILD (from rev 962860, htmlhint/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-06-11 19:58:26 UTC (rev 962861) @@ -0,0 +1,41 @@ +# Maintainer: Daniel M. Capella <poly...@archlinux.org> + +_name=HTMLHint +pkgname=htmlhint +pkgver=0.15.1 +pkgrel=1 +pkgdesc='Static Code Analysis Tool for your HTML' +arch=('any') +url=https://htmlhint.com/ +license=('MIT') +depends=('nodejs') +makedepends=('git' 'npm') +source=("git+https://github.com/htmlhint/HTMLHint.git#tag=v$pkgver") +b2sums=('SKIP') + +build() { + cd $_name + npm ci + npm run build +} + +check() { + cd $_name + npm test +} + +package() { + cd $_name + + npm prune --production + + install -d "$pkgdir"/usr/bin + ln -s ../lib/node_modules/$pkgname/bin/$pkgname "$pkgdir"/usr/bin/$pkgname + install -Dt "$pkgdir"/usr/lib/node_modules/$pkgname/bin bin/$pkgname + cp -r dist node_modules package.json "$pkgdir"/usr/lib/node_modules/$pkgname + install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname \ + {CHANGELOG,CONTRIBUTING,README}.md + install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE.md +} + +# vim:set ts=2 sw=2 et: