summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD27
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bcd7543f5a3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = vsce
+ pkgdesc = Visual Studio Code extension manager
+ pkgver = 1.57.0
+ pkgrel = 1
+ url = https://github.com/Microsoft/vscode-vsce
+ arch = any
+ license = MIT
+ makedepends = npm
+ depends = nodejs
+ source = https://registry.npmjs.org/vsce/-/vsce-1.57.0.tgz
+ sha256sums = 14924b515dee129e9dd110ee4a59a77a213e48d4d2d281210ad28bd8ac6b3f6e
+
+pkgname = vsce
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3f48ec6fe4f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer of this PKGBUILD file: Martino Pilia <martino.pilia@gmail.com>
+pkgname=vsce
+pkgver=1.57.0
+pkgrel=1
+pkgdesc="Visual Studio Code extension manager"
+arch=('any')
+url="https://github.com/Microsoft/vscode-vsce"
+license=('MIT')
+depends=('nodejs')
+makedepends=('npm')
+source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+sha256sums=('14924b515dee129e9dd110ee4a59a77a213e48d4d2d281210ad28bd8ac6b3f6e')
+
+package() {
+ npm install -g \
+ --user root \
+ --prefix "$pkgdir"/usr \
+ "$srcdir"/$pkgname-$pkgver.tgz
+
+ # Non-deterministic race in npm gives 777 permissions to random directories.
+ # See https://github.com/npm/npm/issues/9359 for details.
+ find "${pkgdir}"/usr -type d -exec chmod 755 {} +
+
+ install -D -m644 \
+ "${srcdir}/package/LICENSE" \
+ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}