Date: Thursday, August 16, 2018 @ 06:03:29 Author: felixonmars Revision: 371901
archrelease: copy trunk to community-any Added: npm/repos/community-any/PKGBUILD (from rev 371900, npm/trunk/PKGBUILD) Deleted: npm/repos/community-any/PKGBUILD ----------+ PKGBUILD | 94 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 47 insertions(+), 47 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-08-16 06:03:05 UTC (rev 371900) +++ PKGBUILD 2018-08-16 06:03:29 UTC (rev 371901) @@ -1,47 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=npm -pkgver=6.3.0 -pkgrel=1 -pkgdesc='A package manager for javascript' -arch=('any') -url='https://www.npmjs.com/' -license=('custom:Artistic') -depends=('nodejs' 'node-gyp' 'semver') -makedepends=('procps-ng' 'marked-man') -options=('!emptydirs') -source=("$pkgname-$pkgver.tar.gz::https://github.com/npm/cli/archive/v$pkgver.tar.gz") -sha512sums=('abb515c161b740d7bf8a69b139591df5d92091b30fc1183c1e2288eb0e98caf9b61a83e7d4cc2bfacbd9fed9ac355ec90c4548e2626e976355f9eb58c4b28db5') - -prepare() { - cd cli-$pkgver - ln -sf /usr/bin/marked{,-man} node_modules/.bin/ -} - -build() { - cd cli-$pkgver - make -} - -package() { - cd cli-$pkgver - make NPMOPTS="--prefix=\"$pkgdir/usr\"" install - - # 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" - - # Experimental dedup - _npmdir="$pkgdir"/usr/lib/node_modules/$pkgname - rm -r "$_npmdir"/node_modules/{,.bin/}semver - rm -r "$_npmdir"/node_modules/{,.bin/}node-gyp - sed -i '/node-gyp.js/c\ exec /usr/bin/node-gyp "$@"' \ - "$_npmdir"/node_modules/npm-lifecycle/node-gyp-bin/node-gyp \ - "$_npmdir"/bin/node-gyp-bin/node-gyp - - install -dm755 "$pkgdir"/usr/share/bash-completion/completions - node "$srcdir"/cli-$pkgver/bin/npm-cli.js completion > "$pkgdir"/usr/share/bash-completion/completions/npm - - install -Dm644 "$srcdir"/cli-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} Copied: npm/repos/community-any/PKGBUILD (from rev 371900, npm/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-08-16 06:03:29 UTC (rev 371901) @@ -0,0 +1,47 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=npm +pkgver=6.4.0 +pkgrel=1 +pkgdesc='A package manager for javascript' +arch=('any') +url='https://www.npmjs.com/' +license=('custom:Artistic') +depends=('nodejs' 'node-gyp' 'semver') +makedepends=('procps-ng' 'marked-man') +options=('!emptydirs') +source=("$pkgname-$pkgver.tar.gz::https://github.com/npm/cli/archive/v$pkgver.tar.gz") +sha512sums=('d51eee17a7a25802b2047ed0d12a3e7bed396d0a6c018065dcf6859d2aeba9677804aa9e30820f9aedfe6a1f3345efc89b7722de01268f19c00fb5d2032abc7b') + +prepare() { + cd cli-$pkgver + ln -sf /usr/bin/marked{,-man} node_modules/.bin/ +} + +build() { + cd cli-$pkgver + make +} + +package() { + cd cli-$pkgver + make NPMOPTS="--prefix=\"$pkgdir/usr\"" install + + # 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" + + # Experimental dedup + _npmdir="$pkgdir"/usr/lib/node_modules/$pkgname + rm -r "$_npmdir"/node_modules/{,.bin/}semver + rm -r "$_npmdir"/node_modules/{,.bin/}node-gyp + sed -i '/node-gyp.js/c\ exec /usr/bin/node-gyp "$@"' \ + "$_npmdir"/node_modules/npm-lifecycle/node-gyp-bin/node-gyp \ + "$_npmdir"/bin/node-gyp-bin/node-gyp + + install -dm755 "$pkgdir"/usr/share/bash-completion/completions + node "$srcdir"/cli-$pkgver/bin/npm-cli.js completion > "$pkgdir"/usr/share/bash-completion/completions/npm + + install -Dm644 "$srcdir"/cli-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}