[arch-commits] Commit in stylelint-config-standard/repos/community-any (2 files)
Daniel M. Capella
polyzen at archlinux.org
Tue Feb 16 21:52:36 UTC 2021
Date: Tuesday, February 16, 2021 @ 21:52:36
Author: polyzen
Revision: 862343
archrelease: copy trunk to community-any
Added:
stylelint-config-standard/repos/community-any/PKGBUILD
(from rev 862342, stylelint-config-standard/trunk/PKGBUILD)
Deleted:
stylelint-config-standard/repos/community-any/PKGBUILD
----------+
PKGBUILD | 76 ++++++++++++++++++++++++-------------------------------------
1 file changed, 31 insertions(+), 45 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-02-16 21:52:01 UTC (rev 862342)
+++ PKGBUILD 2021-02-16 21:52:36 UTC (rev 862343)
@@ -1,45 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-
-pkgname=stylelint-config-standard
-pkgver=20.0.0
-pkgrel=4
-pkgdesc='Standard shareable config for stylelint'
-arch=('any')
-url=https://github.com/stylelint/stylelint-config-standard
-license=('MIT')
-depends=('stylelint')
-makedepends=('git' 'jq' 'npm')
-source=("git+$url.git")
-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"
-
- # 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-config-standard/repos/community-any/PKGBUILD (from rev 862342, stylelint-config-standard/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-02-16 21:52:36 UTC (rev 862343)
@@ -0,0 +1,31 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+pkgname=stylelint-config-standard
+pkgver=20.0.0
+pkgrel=5
+pkgdesc='Standard shareable config for stylelint'
+arch=('any')
+url=https://github.com/stylelint/stylelint-config-standard
+license=('MIT')
+depends=('stylelint' 'stylelint-config-recommended')
+makedepends=('git' 'npm')
+source=("git+$url.git")
+b2sums=('SKIP')
+
+build() {
+ cd $pkgname
+ npm ci
+}
+
+check() {
+ cd $pkgname
+ npm test
+}
+
+package() {
+ cd $pkgname
+ install -Dm644 -t "$pkgdir"/usr/lib/node_modules/$pkgname index.js
+ install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname {CHANGELOG,README}.md
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list