summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartino Pilia2019-03-12 20:16:04 +0100
committerMartino Pilia2019-03-12 20:16:04 +0100
commit7262ae6498691767b8005db5da51fac8f5e42fc4 (patch)
treef7b79d6901c4f0c860dc5cd86a1c7ab880d07062
downloadaur-7262ae6498691767b8005db5da51fac8f5e42fc4.tar.gz
Package submission
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD28
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..55e2087e4fd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = nodejs-generator-code
+ pkgdesc = Visual Studio Code extension generator
+ pkgver = 1.1.48
+ pkgrel = 1
+ url = https://github.com/Microsoft/vscode-generator-code
+ arch = any
+ license = MIT
+ makedepends = npm
+ depends = nodejs-yeoman
+ source = https://registry.npmjs.org/generator-code/-/generator-code-1.1.48.tgz
+ sha256sums = 9af8d9495097cc30fd09b3041d25fbe31dbfdc0c3e08db8366dc5d98764964bd
+
+pkgname = nodejs-generator-code
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ab80b1589f5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer of this PKGBUILD file: Martino Pilia <martino.pilia@gmail.com>
+_name=generator-code
+pkgname=nodejs-generator-code
+pkgver=1.1.48
+pkgrel=1
+pkgdesc="Visual Studio Code extension generator"
+arch=('any')
+url="https://github.com/Microsoft/vscode-generator-code"
+license=('MIT')
+depends=('nodejs-yeoman')
+makedepends=('npm')
+source=(https://registry.npmjs.org/$_name/-/$_name-$pkgver.tgz)
+sha256sums=('9af8d9495097cc30fd09b3041d25fbe31dbfdc0c3e08db8366dc5d98764964bd')
+
+package() {
+ npm install -g \
+ --user root \
+ --prefix "$pkgdir"/usr \
+ "$srcdir"/$_name-$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/${_name}/LICENSE"
+}