Date: Tuesday, February 16, 2021 @ 21:52:01 Author: polyzen Revision: 862342
archrelease: copy trunk to community-any Added: stylelint/repos/community-any/PKGBUILD (from rev 862341, stylelint/trunk/PKGBUILD) Deleted: stylelint/repos/community-any/PKGBUILD ----------+ PKGBUILD | 90 +++++++++++++++++++++++++++---------------------------------- 1 file changed, 41 insertions(+), 49 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-02-16 21:51:29 UTC (rev 862341) +++ PKGBUILD 2021-02-16 21:52:01 UTC (rev 862342) @@ -1,49 +0,0 @@ -# Maintainer: Daniel M. Capella <poly...@archlinux.org> - -pkgname=stylelint -pkgver=13.10.0 -pkgrel=2 -pkgdesc='Mighty, modern CSS linter' -arch=('any') -url=https://stylelint.io -license=('MIT') -depends=('nodejs') -makedepends=('git' 'jq' 'npm') -optdepends=('stylelint-config-standard: for the standard shareable config') -source=("git+https://github.com/stylelint/stylelint.git#tag=$pkgver") -b2sums=('SKIP') - -build() { - cd $pkgname - npm ci - npm pack -} - -check() { - cd $pkgname - npm test -} - -package() { - cd $pkgname - npm install --global \ - --user root \ - --prefix "$pkgdir"/usr \ - --production \ - $pkgname-$pkgver.tgz - chown -R root:root "$pkgdir" - install -d "$pkgdir"/usr/share/licenses/$pkgname - ln -s /usr/lib/node_modules/$pkgname/LICENSE \ - "$pkgdir"/usr/share/licenses/$pkgname/LICENSE - - # Remove references to $srcdir and $pkgdir - find "$pkgdir" -name package.json -print0 | xargs -r -0 sed -i '/_where/d' - - local tmppackage="$(mktemp)" - local pkgjson="$pkgdir/usr/lib/node_modules/$pkgname/package.json" - jq '.|=with_entries(select(.key|test("_.+")|not))' "$pkgjson" > "$tmppackage" - mv "$tmppackage" "$pkgjson" - chmod 644 "$pkgjson" -} - -# vim:set ts=2 sw=2 et: Copied: stylelint/repos/community-any/PKGBUILD (from rev 862341, stylelint/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-02-16 21:52:01 UTC (rev 862342) @@ -0,0 +1,41 @@ +# Maintainer: Daniel M. Capella <poly...@archlinux.org> + +pkgname=stylelint +pkgver=13.10.0 +pkgrel=3 +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') + +build() { + 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: