mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
removed extra/npm6
This commit is contained in:
parent
9d2615cf0d
commit
625ba6405e
1 changed files with 0 additions and 69 deletions
|
@ -1,69 +0,0 @@
|
|||
# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
|
||||
# Contributor: Felix Yan <felixonmars@archlinux.org>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - makedepend on libpng - required to build pngquant from source during build
|
||||
|
||||
pkgname=npm6
|
||||
_pkgname=npm
|
||||
pkgver=6.14.15
|
||||
pkgrel=1
|
||||
pkgdesc='A package manager for javascript'
|
||||
arch=('any')
|
||||
url='https://www.npmjs.com/'
|
||||
license=('custom:Artistic')
|
||||
provides=('npm')
|
||||
conflicts=('npm')
|
||||
depends=('nodejs-lts-fermium' 'node-gyp' 'semver')
|
||||
# libgl: TODO
|
||||
# libvips: for sharp (doc build) (disabled as current version of gatsby imports a broken sharp)
|
||||
# libxi: for cwebp (doc build)
|
||||
makedepends=('libgl' 'libxi' 'marked' 'marked-man' 'procps-ng' 'python' 'libpng')
|
||||
options=('!emptydirs')
|
||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/npm/cli/archive/v$pkgver.tar.gz")
|
||||
sha512sums=('9cf3412d25c2fa4137a30b9144e8bb668d6f606e877e709d2c02e00826da86a75fbd320136f471a17495e163cd91e3898f5759ab64e0b83fed494e9a0bcb28f4')
|
||||
|
||||
prepare() {
|
||||
cd cli-$pkgver
|
||||
mkdir -p node_modules/.bin
|
||||
ln -sf /usr/bin/marked{,-man} node_modules/.bin/
|
||||
|
||||
# Use local marked/marked-man
|
||||
sed -i 's|node bin/npm-cli.js install marked|true |' Makefile
|
||||
|
||||
# Don't build twice
|
||||
sed -i 's/install: all/install:/' Makefile
|
||||
|
||||
mkdir -p man/man1
|
||||
}
|
||||
|
||||
build() {
|
||||
cd cli-$pkgver
|
||||
NODE_PATH=/usr/lib/node_modules 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"
|
||||
|
||||
# npm installs package.json owned by build user
|
||||
# https://bugs.archlinux.org/task/63396
|
||||
chown -R root:root "$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
|
||||
}
|
Loading…
Reference in a new issue