mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/nodejs to 0.10.6-1
This commit is contained in:
parent
1089bceb8d
commit
b311ae9273
1 changed files with 8 additions and 6 deletions
|
@ -7,19 +7,17 @@
|
|||
# Contributor: Jason Plum <jplum@archlinuxarm.org>
|
||||
|
||||
pkgname=nodejs
|
||||
pkgver=0.10.5
|
||||
pkgver=0.10.6
|
||||
pkgrel=1
|
||||
pkgdesc='Evented I/O for V8 javascript'
|
||||
arch=('i686' 'x86_64' 'arm')
|
||||
url='http://nodejs.org/'
|
||||
license=('MIT')
|
||||
makedepends=('python2')
|
||||
depends=('python2')
|
||||
checkdepends=('curl')
|
||||
optdepends=('openssl: TLS support')
|
||||
options=('!emptydirs !strip')
|
||||
source=("http://nodejs.org/dist/v${pkgver}/node-v${pkgver}.tar.gz")
|
||||
sha256sums=('1c22bd15cb13b1109610ee256699300ec6999b335f3bc85dc3c0312ec9312cfd')
|
||||
sha256sums=('7e2079394efe82f62798178f617888c9d6a39150c76122c432ae9ea73ce28e79')
|
||||
|
||||
set_flags_for_arm() {
|
||||
if [ "$CARCH" == "arm" ]; then
|
||||
|
@ -46,13 +44,17 @@ set_flags_for_arm() {
|
|||
export GYPFLAGS
|
||||
}
|
||||
|
||||
build() {
|
||||
cd node-v${pkgver}
|
||||
prepare() {
|
||||
cd node-v$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_'python'_'python2'_" -i {} \;
|
||||
find test -type f -exec sed -e "s|python |python2 |" -i {} \;
|
||||
sed -i "s|python |python2 |" Makefile
|
||||
}
|
||||
|
||||
build() {
|
||||
cd node-v$pkgver
|
||||
|
||||
export PYTHON=python2
|
||||
|
||||
|
|
Loading…
Reference in a new issue