summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMartino Pilia2019-02-17 19:38:32 +0100
committerMartino Pilia2019-02-17 19:38:32 +0100
commitd124d047b55447aa2655d61f6ce85e7e53ff9b2a (patch)
tree30127c0668fa9ad74ebef5674f8b201104650916 /PKGBUILD
downloadaur-d124d047b55447aa2655d61f6ce85e7e53ff9b2a.tar.gz
Package submission
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 27 insertions, 0 deletions
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"
+}