mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
45 lines
1.1 KiB
Bash
45 lines
1.1 KiB
Bash
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
|
|
# Original CCR maintainer: Inkane <neoinkaneglade@aol.com>
|
|
|
|
pkgname=nodejs
|
|
pkgver=0.10.29
|
|
pkgrel=1
|
|
pkgdesc="Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications."
|
|
arch=('x86_64')
|
|
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=('e14ea9f46f9beecdf4e9423fb626c70b')
|
|
|
|
build() {
|
|
cd "node-v${pkgver}"
|
|
|
|
export PYTHON=python2
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "node-v${pkgver}"
|
|
# Added true because the test are successfully done but exit with a fail
|
|
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/*.html \
|
|
"${pkgdir}/usr/share/doc/nodejs"
|
|
|
|
install -D -m644 LICENSE \
|
|
"${pkgdir}/usr/share/licenses/nodejs/LICENSE"
|
|
}
|