Date: Wednesday, February 23, 2022 @ 18:46:42 Author: polyzen Revision: 1136294
archrelease: copy trunk to community-any Added: stylelint/repos/community-any/PKGBUILD (from rev 1136293, stylelint/trunk/PKGBUILD) Deleted: stylelint/repos/community-any/PKGBUILD ----------+ PKGBUILD | 82 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 41 insertions(+), 41 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-02-23 18:46:24 UTC (rev 1136293) +++ PKGBUILD 2022-02-23 18:46:42 UTC (rev 1136294) @@ -1,41 +0,0 @@ -# Maintainer: Daniel M. Capella <poly...@archlinux.org> - -pkgname=stylelint -pkgver=14.5.2 -pkgrel=1 -pkgdesc='Mighty, modern CSS linter' -arch=('any') -url=https://stylelint.io -license=('MIT') -depends=('nodejs') -makedepends=('git' 'npm' 'rsync') -optdepends=('stylelint-config-standard: for the standard shareable config') -source=("git+https://github.com/stylelint/stylelint.git#tag=$pkgver") -b2sums=('SKIP') - -prepare() { - cd $pkgname - npm ci -} - -check() { - cd $pkgname - npm test -} - -package() { - cd $pkgname - - npm prune --production - - install -d "$pkgdir"/usr/{bin,share/doc/$pkgname} - ln -s ../lib/node_modules/$pkgname/bin/$pkgname.js "$pkgdir"/usr/bin/$pkgname - install -Dt "$pkgdir"/usr/lib/node_modules/$pkgname/bin bin/$pkgname.js - rsync -r --exclude __tests__ --exclude lib/testUtils lib \ - "$pkgdir"/usr/lib/node_modules/$pkgname - cp -r node_modules package.json "$pkgdir"/usr/lib/node_modules/$pkgname - cp -r {CHANGELOG,CONTRIBUTING,README}.md docs "$pkgdir"/usr/share/doc/$pkgname - install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE -} - -# vim:set ts=2 sw=2 et: Copied: stylelint/repos/community-any/PKGBUILD (from rev 1136293, stylelint/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-02-23 18:46:42 UTC (rev 1136294) @@ -0,0 +1,41 @@ +# Maintainer: Daniel M. Capella <poly...@archlinux.org> + +pkgname=stylelint +pkgver=14.5.3 +pkgrel=1 +pkgdesc='Mighty, modern CSS linter' +arch=('any') +url=https://stylelint.io +license=('MIT') +depends=('nodejs') +makedepends=('git' 'npm' 'rsync') +optdepends=('stylelint-config-standard: for the standard shareable config') +source=("git+https://github.com/stylelint/stylelint.git#tag=$pkgver") +b2sums=('SKIP') + +prepare() { + cd $pkgname + npm ci +} + +check() { + cd $pkgname + npm test +} + +package() { + cd $pkgname + + npm prune --production + + install -d "$pkgdir"/usr/{bin,share/doc/$pkgname} + ln -s ../lib/node_modules/$pkgname/bin/$pkgname.js "$pkgdir"/usr/bin/$pkgname + install -Dt "$pkgdir"/usr/lib/node_modules/$pkgname/bin bin/$pkgname.js + rsync -r --exclude __tests__ --exclude lib/testUtils lib \ + "$pkgdir"/usr/lib/node_modules/$pkgname + cp -r node_modules package.json "$pkgdir"/usr/lib/node_modules/$pkgname + cp -r {CHANGELOG,CONTRIBUTING,README}.md docs "$pkgdir"/usr/share/doc/$pkgname + install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE +} + +# vim:set ts=2 sw=2 et: