[arch-commits] Commit in ts-node/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun May 23 22:56:55 UTC 2021


    Date: Sunday, May 23, 2021 @ 22:56:54
  Author: felixonmars
Revision: 943551

archrelease: copy trunk to community-any

Added:
  ts-node/repos/community-any/PKGBUILD
    (from rev 943550, ts-node/trunk/PKGBUILD)
Deleted:
  ts-node/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   61 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 32 insertions(+), 29 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-23 22:56:45 UTC (rev 943550)
+++ PKGBUILD	2021-05-23 22:56:54 UTC (rev 943551)
@@ -1,29 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Bruno Galeotti <bgaleotti at gmail dot com>
-
-pkgname=ts-node
-pkgver=10.0.0
-pkgrel=1
-pkgdesc="TypeScript execution and REPL for node.js, with source map support"
-arch=('any')
-url="https://github.com/TypeStrong/ts-node"
-license=('MIT')
-depends=('nodejs' 'typescript')
-makedepends=('npm')
-source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
-noextract=($pkgname-$pkgver.tgz)
-sha512sums=('44e59e38852f7c56cf664a038acd0bff9e4593eea0150359c3028f2e29da71197ab6cc6cb531750db01c2ca928bf09e928c56f38c1cfd5321b9f05f0b4b83582')
-
-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.
-  chmod -R u=rwX,go=rX "$pkgdir"
-
-  # npm installs package.json owned by build user
-  # https://bugs.archlinux.org/task/63396
-  chown -R root:root "$pkgdir"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: ts-node/repos/community-any/PKGBUILD (from rev 943550, ts-node/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-05-23 22:56:54 UTC (rev 943551)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Bruno Galeotti <bgaleotti at gmail dot com>
+
+pkgname=ts-node
+pkgver=10.0.0
+pkgrel=1
+pkgdesc="TypeScript execution and REPL for node.js, with source map support"
+arch=('any')
+url="https://github.com/TypeStrong/ts-node"
+license=('MIT')
+depends=('nodejs' 'typescript')
+makedepends=('npm')
+source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
+noextract=($pkgname-$pkgver.tgz)
+sha512sums=('44e59e38852f7c56cf664a038acd0bff9e4593eea0150359c3028f2e29da71197ab6cc6cb531750db01c2ca928bf09e928c56f38c1cfd5321b9f05f0b4b83582')
+
+package() {
+  npm install -g --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.
+  chmod -R u=rwX,go=rX "$pkgdir"
+
+  # npm installs package.json owned by build user
+  # https://bugs.archlinux.org/task/63396
+  chown -R root:root "$pkgdir"
+
+  # Dedup typescript
+  rm -r "$pkgdir"/usr/bin/{tsc,tsserver} "$pkgdir"/usr/lib/node_modules/typescript
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list