diff options
author | Piyush Pangtey | 2017-11-09 15:17:49 +0530 |
---|---|---|
committer | Piyush Pangtey | 2017-11-09 15:17:49 +0530 |
commit | cfd3d9dd47a5b81b52a542f77b517891e9ba0afc (patch) | |
tree | 096aa3d88e19348269012725e501903ec4c8c1c3 | |
download | aur-cfd3d9dd47a5b81b52a542f77b517891e9ba0afc.tar.gz |
[Feature] Added PKGBUILD
Signed-off-by: Piyush Pangtey <pangteypiyush@gmail.com>
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 63 |
2 files changed, 86 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ac36276598d7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = nodejs-lts-carbon + pkgdesc = Evented I/O for V8 javascript + pkgver = 8.9.0 + pkgrel = 1 + url = http://nodejs.org/ + arch = i686 + arch = x86_64 + license = MIT + makedepends = python2 + makedepends = procps-ng + depends = openssl-1.0 + depends = zlib + depends = icu + depends = libuv + depends = http-parser + depends = c-ares + optdepends = npm: nodejs package manager + conflicts = nodejs + source = nodejs-8.9.0.tar.gz::https://github.com/nodejs/node/archive/v8.9.0.tar.gz + sha512sums = f95c5edb62e1eba23dafa5455d80c00c4dd87b02563546822ebe3f61b55c3f9a27de4eede235655280baf6958e59744249c07e93012f082b0a4d6098f26d7e18 + +pkgname = nodejs-lts-carbon + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d2a776a4e747 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer: Piyush Pangtey <pangteypiyush @ gmail.com> + +pkgname=nodejs-lts-carbon +pkgver=8.9.0 +pkgrel=1 +pkgdesc='Evented I/O for V8 javascript' +arch=('i686' 'x86_64') +url='http://nodejs.org/' +license=('MIT') +depends=('openssl-1.0' 'zlib' 'icu' 'libuv' 'http-parser' 'c-ares') # 'v8') +makedepends=('python2' 'procps-ng') +optdepends=('npm: nodejs package manager') +conflicts=('nodejs') +source=("nodejs-$pkgver.tar.gz::https://github.com/nodejs/node/archive/v$pkgver.tar.gz") +sha512sums=("f95c5edb62e1eba23dafa5455d80c00c4dd87b02563546822ebe3f61b55c3f9a27de4eede235655280baf6958e59744249c07e93012f082b0a4d6098f26d7e18") + +prepare() { + cd node-$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_^\( *exec \+\)python\( \+.*\)$_\1python2\2_'\ + -e 's_^\(.*\)python\( \+-c \+.*\)$_\1python2\2_'\ + -e "s_'python'_'python2'_" -i {} \; + find test/ -type f -exec sed 's_python _python2 _' -i {} \; +} + +build() { + cd node-$pkgver + + export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig + export PYTHON=python2 + ./configure \ + --prefix=/usr \ + --with-intl=system-icu \ + --without-npm \ + --shared-openssl \ + --shared-zlib \ + --shared-libuv \ + --shared-http-parser \ + --shared-cares + # --shared-v8 + + make +} + +check() { + cd node-$pkgver + # Expected failure: https://github.com/nodejs/node/issues/11627 + make test || warning "Tests failed" +} + +package() { + cd node-$pkgver + + make DESTDIR="$pkgdir" install + + install -D -m644 LICENSE \ + "$pkgdir"/usr/share/licenses/nodejs/LICENSE +} |