nodejs

Make a PKGBUILD? Submit it here for user review and possible placement into the repository.

nodejs

Postby npenin » Fri Aug 31, 2012 4:59 am

Hi everyone,

I have updated a pkgbuild to compile node.js on a raspberry pi :

$this->bbcode_second_pass_code('', '# Maintainer: Daniele Cocca <jmc@chakra-project.org>
# Original CCR maintainer: Inkane <neoinkaneglade@aol.com>
# Contributor: Alfonso Fernando Àlvarez < ponchoalv at gmail >
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: James Campos <james.r.campos@gmail.com>
# Contributor: BlackEagle < ike DOT devolder AT gmail DOT com >
# Contributor: Dongsheng Cai <dongsheng at moodle dot com>
# Contributor: Masutu Subric <masutu.arch at googlemail dot com>
# Contributor: TIanyi Cui <tianyicui@gmail.com>
# Contributor: Nicolas Penin <nicolas.penin AT dragon-angel DOT fr>

pkgname=nodejs
pkgver=0.8.8
pkgrel=1
pkgdesc="Node.js is a platform built on V8 JavaScript runtime for easily building fast, scalable network applications."
arch=('arm')
url='http://nodejs.org/'
license=('MIT')
depends=('python2' 'openssl')

checkdepends=('curl') # curl used for check()
options=('!emptydirs')
source=("http://nodejs.org/dist/v${pkgver}/node-v${pkgver}.tar.gz")
md5sums=('f4dae84e96a94b768404c14633bccd49')
#_gitroot='https://github.com/joyent/'
#_gitname='node'

build() {
cd "node-v${pkgver}"
export PYTHON=python2

curl -O https://github.com/adammw/node/commit/arm-patches-2.patch

git apply --stat --apply ./arm-patches-2.patch

./configure --shared-openssl --without-snapshot --prefix=/usr
make CFLAGS+=-O2 CXXFLAGS+=-O2
}
check() {
cd "node-v${pkgver}"
make test || true
}
package() {
cd "node-v${pkgver}"
make install DESTDIR="${pkgdir}"
# install docs as per user request
install -d "${pkgdir}/usr/share/doc/nodejs"
cp -r doc/api/* "${pkgdir}/usr/share/doc/nodejs"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/nodejs/LICENSE"
}')
npenin
 
Posts: 4
Joined: Fri Aug 31, 2012 4:56 am

Re: nodejs

Postby WarheadsSE » Sat Sep 01, 2012 1:16 am

Does the existing nodejs package from our github (and the repo) not work for you?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: nodejs

Postby npenin » Sat Sep 01, 2012 6:52 am

Oops, the last time I did try it was not available, because it worked only on armv7. Thus I did not have a look again since the 0.8.6 version. Great work guys !

EDIT : It seems I do have an issue with npm and openssl.
npenin
 
Posts: 4
Joined: Fri Aug 31, 2012 4:56 am

Re: nodejs

Postby WarheadsSE » Sun Sep 02, 2012 1:42 am

I have had nodejs available since atleast 0.6, if not earlier.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to User-Submitted Packages

Who is online

Users browsing this forum: No registered users and 3 guests