[arch-commits] Commit in nodejs/trunk (PKGBUILD)

Bartłomiej Piotrowski bpiotrowski at nymeria.archlinux.org
Wed May 15 09:05:24 EDT 2013


    Date: Wednesday, May 15, 2013 @ 15:05:24
  Author: bpiotrowski
Revision: 90905

upgpkg: nodejs 0.10.6-1

- upstream release
- separate prepare() function
- remove python from dependencies (FS#34782)

Modified:
  nodejs/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-15 13:00:35 UTC (rev 90904)
+++ PKGBUILD	2013-05-15 13:05:24 UTC (rev 90905)
@@ -8,20 +8,21 @@
 # Contributor: TIanyi Cui <tianyicui at 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 @@
     -e 's_^#!/usr/bin/python$_&2_' \
     -e "s_'python'_'python2'_" -i {} \;
   find test/ -type f -exec sed 's_python _python2 _' -i {} \;
+}
+
+build() {
+  cd node-v$pkgver
+
   export PYTHON=python2
-
   ./configure \
     --prefix=/usr \
     --shared-openssl
@@ -40,12 +45,12 @@
 }
 
 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
 



More information about the arch-commits mailing list