[arch-commits] Commit in eslint/repos/community-any (PKGBUILD PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Sat Mar 26 00:08:56 UTC 2022
Date: Saturday, March 26, 2022 @ 00:08:55
Author: polyzen
Revision: 1176786
archrelease: copy trunk to community-any
Added:
eslint/repos/community-any/PKGBUILD
(from rev 1176785, eslint/trunk/PKGBUILD)
Deleted:
eslint/repos/community-any/PKGBUILD
----------+
PKGBUILD | 85 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 43 insertions(+), 42 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-26 00:08:33 UTC (rev 1176785)
+++ PKGBUILD 2022-03-26 00:08:55 UTC (rev 1176786)
@@ -1,42 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-
-pkgname=eslint
-pkgver=8.11.0
-pkgrel=1
-pkgdesc='An AST-based pattern checker for JavaScript'
-arch=('any')
-url='https://eslint.org'
-license=('MIT')
-depends=('acorn' 'nodejs')
-makedepends=('npm' 'rsync')
-options=('!emptydirs')
-source=("https://github.com/eslint/eslint/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-b2sums=('fe80db0438b961c2ba29207444a3e1712fc98217bb56c0c468cab8c22c412f814dee123cb0092793ef9043470988e02858dcfb0c7d58e544ab7ae8e96107edbb')
-
-prepare() {
- cd eslint-$pkgver
- npm install
-}
-
-check() {
- cd eslint-$pkgver
- node Makefile mocha
-}
-
-package() {
- cd eslint-$pkgver
-
- npm prune --production
-
- install -d "$pkgdir"/usr/bin
- 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 .cache conf lib messages node_modules package.json \
- "$pkgdir"/usr/lib/node_modules/$pkgname
- install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname README.md
- install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
-
- # Experimental dedup
- rm -r "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules/acorn
-}
Copied: eslint/repos/community-any/PKGBUILD (from rev 1176785, eslint/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-03-26 00:08:55 UTC (rev 1176786)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+pkgname=eslint
+pkgver=8.12.0
+pkgrel=1
+pkgdesc='An AST-based pattern checker for JavaScript'
+arch=('any')
+url='https://eslint.org'
+license=('MIT')
+depends=('acorn' 'nodejs')
+makedepends=('npm' 'rsync')
+options=('!emptydirs')
+source=("https://github.com/$pkgname/$pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+b2sums=('fec6008d2747c3a4bda1389476d3a2f84db6c783611f8c442fdbd655ed2a218bbc4a84fd61865d25f6794bec73949e9fe870da07a2ae32e61a4e3f987c3d9576')
+
+prepare() {
+ cd $pkgname-$pkgver
+ npm install
+}
+
+check() {
+ cd $pkgname-$pkgver
+ node Makefile mocha
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ npm prune --production
+
+ _npmdir=/usr/lib/node_modules/$pkgname
+ install -d "$pkgdir"/usr/bin
+ ln -s $_npmdir/bin/$pkgname.js "$pkgdir"/usr/bin/$pkgname
+ install -Dt "$pkgdir"/$_npmdir/bin bin/$pkgname.js
+ rsync -r --exclude .cache conf lib messages node_modules package.json \
+ "$pkgdir"/$_npmdir
+ install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname README.md
+ install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
+
+ # Experimental dedup
+ rm -r "$pkgdir"/$_npmdir/node_modules/acorn
+}
More information about the arch-commits
mailing list