[arch-commits] Commit in eslint_d/repos (community-any community-any/PKGBUILD)
Jelle van der Waa
jelle at gemini.archlinux.org
Thu May 12 18:53:07 UTC 2022
Date: Thursday, May 12, 2022 @ 18:53:07
Author: jelle
Revision: 1199786
archrelease: copy trunk to community-any
Added:
eslint_d/repos/community-any/
eslint_d/repos/community-any/PKGBUILD
(from rev 1199785, eslint_d/trunk/PKGBUILD)
----------+
PKGBUILD | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
Copied: eslint_d/repos/community-any/PKGBUILD (from rev 1199785, eslint_d/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2022-05-12 18:53:07 UTC (rev 1199786)
@@ -0,0 +1,26 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Contributor: Sam A. Horvath-Hunt <hello at samhh.com>
+
+pkgname=eslint_d
+pkgver=12.1.0
+pkgrel=2
+pkgdesc="Makes eslint the fastest linter on the planet."
+url="https://github.com/mantoni/eslint_d.js"
+license=("MIT")
+arch=("any")
+depends=("nodejs")
+makedepends=("npm")
+source=("https://registry.npmjs.org/${pkgname}/-/${pkgname}-${pkgver}.tgz")
+noextract=("${pkgname}-${pkgver}.tgz")
+sha256sums=('4b826abef0f3f4b71aa9a48f5b111adf5babbe7458fa9a34546526bd9b5c7a6e')
+
+prepare() {
+ tar xf "${pkgname}-${pkgver}.tgz" package/LICENSE
+}
+
+package() {
+ npm i -g --cache "${srcdir}/npm-cache" --prefix "$pkgdir/usr" "$srcdir/$pkgname-$pkgver.tgz"
+ install -Dm644 package/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ chown -R root:root "$pkgdir/usr"
+}
+
More information about the arch-commits
mailing list