summaryrefslogtreecommitdiff
path: root/community/nodejs
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-16 01:06:25 -0700
committerroot <root@rshg054.dnsready.net>2013-05-16 01:06:25 -0700
commit453f3b8b2c568e9babcdc4852772278a39f130c0 (patch)
tree0f330a052dc9da74351a6167b47f16d91bf59bfa /community/nodejs
parent51c18483cd98db045391ee9a0c7b9b6ad5d4ab3a (diff)
Thu May 16 01:06:25 PDT 2013
Diffstat (limited to 'community/nodejs')
-rw-r--r--community/nodejs/PKGBUILD25
1 files changed, 15 insertions, 10 deletions
diff --git a/community/nodejs/PKGBUILD b/community/nodejs/PKGBUILD
index 738d4a395..e06281bc6 100644
--- a/community/nodejs/PKGBUILD
+++ b/community/nodejs/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 88884 2013-04-24 15:09:27Z bpiotrowski $
+# $Id: PKGBUILD 90906 2013-05-15 13:05:39Z bpiotrowski $
# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: James Campos <james.r.campos@gmail.com>
@@ -8,20 +8,21 @@
# Contributor: TIanyi Cui <tianyicui@gmail.com>
pkgname=nodejs
-pkgver=0.10.5
+pkgver=0.10.6
pkgrel=1
pkgdesc='Evented I/O for V8 javascript'
arch=('i686' 'x86_64')
url='http://nodejs.org/'
license=('MIT')
-depends=('openssl' 'python2')
+depends=('openssl')
+makedepends=('python2')
checkdepends=('curl')
options=('!emptydirs')
-source=(http://nodejs.org/dist/v${pkgver}/node-v${pkgver}.tar.gz)
-sha256sums=('1c22bd15cb13b1109610ee256699300ec6999b335f3bc85dc3c0312ec9312cfd')
+source=(http://nodejs.org/dist/v$pkgver/node-v$pkgver.tar.gz)
+sha256sums=('7e2079394efe82f62798178f617888c9d6a39150c76122c432ae9ea73ce28e79')
-build() {
- cd node-v${pkgver}
+prepare() {
+ cd node-v$pkgver
msg 'Fixing for python2 name'
find -type f -exec sed \
@@ -30,8 +31,12 @@ build() {
-e 's_^#!/usr/bin/python$_&2_' \
-e "s_'python'_'python2'_" -i {} \;
find test/ -type f -exec sed 's_python _python2 _' -i {} \;
- export PYTHON=python2
+}
+build() {
+ cd node-v$pkgver
+
+ export PYTHON=python2
./configure \
--prefix=/usr \
--shared-openssl
@@ -40,12 +45,12 @@ build() {
}
check() {
- cd node-v${pkgver}
+ cd node-v$pkgver
make test || true
}
package() {
- cd node-v${pkgver}
+ cd node-v$pkgver
make DESTDIR="$pkgdir" install