Date: Friday, February 23, 2018 @ 16:36:55 Author: archange Revision: 297237
archrelease: copy trunk to community-x86_64 Added: nodejs-lts-boron/repos/community-x86_64/PKGBUILD (from rev 297236, nodejs-lts-boron/trunk/PKGBUILD) Deleted: nodejs-lts-boron/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 126 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 63 insertions(+), 63 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-02-23 16:36:39 UTC (rev 297236) +++ PKGBUILD 2018-02-23 16:36:55 UTC (rev 297237) @@ -1,63 +0,0 @@ -# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <archa...@archlinux.org> - -pkgname=nodejs-lts-boron -pkgver=6.12.3 -pkgrel=2 -pkgdesc='Evented I/O for V8 javascript (LTS release: Boron)' -arch=('x86_64') -url='https://nodejs.org/' -license=('MIT') -depends=('openssl-1.0' 'zlib' 'icu' 'libuv' 'http-parser' 'c-ares') -makedepends=('python2' 'procps-ng') -optdepends=('npm: nodejs package manager') -provides=("nodejs=$pkgver") -conflicts=('nodejs') -source=("${url}/dist/v${pkgver}/node-v${pkgver}.tar.xz") -# https://nodejs.org/download/release/latest-boron/SHASUMS256.txt.asc -sha512sums=('dcf30bc221aa949e6ca3bd9321ac68adb05d93af0b06119b4b73bfd4cfa2c31897520d90247ac0f783946c1fc2efe77178f52225150dad4522ac9408d036a8e4') -#validpgpkeys=('C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8') # Myles Borins <mylesbor...@google.com> - -prepare() { - cd node-v${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-v${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 - - make -} - -check() { - cd node-v${pkgver} - # Some network related errors - make test || warning "Tests failed" -} - -package() { - cd node-v${pkgver} - - make DESTDIR="${pkgdir}" install - - install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE -} Copied: nodejs-lts-boron/repos/community-x86_64/PKGBUILD (from rev 297236, nodejs-lts-boron/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-02-23 16:36:55 UTC (rev 297237) @@ -0,0 +1,63 @@ +# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <archa...@archlinux.org> + +pkgname=nodejs-lts-boron +pkgver=6.13.0 +pkgrel=1 +pkgdesc='Evented I/O for V8 javascript (LTS release: Boron)' +arch=('x86_64') +url='https://nodejs.org/' +license=('MIT') +depends=('openssl-1.0' 'zlib' 'icu' 'libuv' 'http-parser' 'c-ares') +makedepends=('python2' 'procps-ng') +optdepends=('npm: nodejs package manager') +provides=("nodejs=$pkgver") +conflicts=('nodejs') +source=("${url}/dist/v${pkgver}/node-v${pkgver}.tar.xz") +# https://nodejs.org/download/release/latest-boron/SHASUMS256.txt.asc +sha256sums=('b7166fe2c6b29fbaa5a81c6953dc6764a91966ac00d746581fad66ddb1bb4d04') +#validpgpkeys=('C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8') # Myles Borins <mylesbor...@google.com> + +prepare() { + cd node-v${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-v${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 + + make +} + +check() { + cd node-v${pkgver} + # Some network related errors + make test || warning "Tests failed" +} + +package() { + cd node-v${pkgver} + + make DESTDIR="${pkgdir}" install + + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE +}