[arch-commits] Commit in nodejs/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Dec 30 20:32:55 UTC 2019
Date: Monday, December 30, 2019 @ 20:32:54
Author: felixonmars
Revision: 544978
upgpkg: nodejs 13.5.0-2
build with python instead of python2 (FS#64453)
Modified:
nodejs/trunk/PKGBUILD
----------+
PKGBUILD | 19 ++-----------------
1 file changed, 2 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-12-30 20:29:09 UTC (rev 544977)
+++ PKGBUILD 2019-12-30 20:32:54 UTC (rev 544978)
@@ -9,35 +9,20 @@
pkgname=nodejs
pkgver=13.5.0
-pkgrel=1
+pkgrel=2
pkgdesc='Evented I/O for V8 javascript'
arch=('x86_64')
url='https://nodejs.org/'
license=('MIT')
depends=('openssl' 'zlib' 'icu' 'libuv' 'c-ares' 'libnghttp2') # 'http-parser' 'v8')
-makedepends=('python2' 'procps-ng')
+makedepends=('python' 'procps-ng')
optdepends=('npm: nodejs package manager')
source=("nodejs-$pkgver.tar.gz::https://github.com/nodejs/node/archive/v$pkgver.tar.gz")
sha512sums=('d2b8ffa7b83ed1266b3d7c95efbe42166e6b26f8153a19c54abf27f4156e42b9ee20117b689c9df53e6a4e583d788702918914063031e05156c767a38e8ec46e')
-prepare() {
- cd node-$pkgver
-
- msg 'Fixing for python2 name'
- find -type f -exec sed \
- -e 's_^#!/usr/bin/env python$_&2_' \
- -e 's_^\(#!/usr/bin/python2\).[45]$_\1_' \
- -e 's_^#!/usr/bin/python$_&2_' \
- -e 's_^\( *exec \+\)python\( \+.*\)$_\1python2\2_'\
- -e 's_^\(.*\)python\( \+-c \+.*\)$_\1python2\2_'\
- -e "s_'python'_'python2'_" -i {} \;
- find test/ -type f -exec sed 's_python _python2 _' -i {} \;
-}
-
build() {
cd node-$pkgver
- export PYTHON=python2
./configure \
--prefix=/usr \
--with-intl=system-icu \
More information about the arch-commits
mailing list