aboutsummaryrefslogtreecommitdiffstats
path: root/community/nodejs-current/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/nodejs-current/APKBUILD')
-rw-r--r--community/nodejs-current/APKBUILD14
1 files changed, 11 insertions, 3 deletions
diff --git a/community/nodejs-current/APKBUILD b/community/nodejs-current/APKBUILD
index bb5f7b5bc3..bfd63e1d4c 100644
--- a/community/nodejs-current/APKBUILD
+++ b/community/nodejs-current/APKBUILD
@@ -22,7 +22,7 @@ pkgver=11.3.0
pkgrel=0
pkgdesc="JavaScript runtime built on V8 engine - current stable version"
url="https://nodejs.org/"
-arch="all"
+arch="all !mips64 !mips64el"
license="MIT"
depends="ca-certificates"
depends_dev="libuv"
@@ -33,7 +33,9 @@ subpackages="$pkgname-dev $pkgname-doc"
provides="nodejs"
replaces="nodejs nodejs-lts" # nodejs-lts for backward compatibility
source="https://nodejs.org/dist/v$pkgver/node-v$pkgver.tar.gz
- dont-run-gyp-files-for-bundled-deps.patch"
+ dont-run-gyp-files-for-bundled-deps.patch
+ link-with-libatomic-on-mips32.patch
+ "
builddir="$srcdir/node-v$pkgver"
prepare() {
@@ -46,7 +48,12 @@ prepare() {
build() {
cd "$builddir"
+ case "$CARCH" in
+ mips*) _carchflags="--with-mips-arch-variant=r1 --with-mips-float-abi=soft";;
+ esac
+
./configure --prefix=/usr \
+ $_carchflags \
--shared-zlib \
--shared-libuv \
--shared-openssl \
@@ -85,4 +92,5 @@ package() {
}
sha512sums="dd1475bd61dbc2aac563e12ced0b9423bf1f5fc421d0699526799b60254d89cbb8d01530f2f029fe146777aecadc4aa54ad62d7b33fb9195f16d8a54b1278588 node-v11.3.0.tar.gz
-9145a28bc3c2ebfc5e29e7416f8387a68808607eea4d87830a14a27c80628177a02ef4ed54b0efe2384c39fedf7356d12c267567d06d53d669c55d6211bfcf8a dont-run-gyp-files-for-bundled-deps.patch"
+9145a28bc3c2ebfc5e29e7416f8387a68808607eea4d87830a14a27c80628177a02ef4ed54b0efe2384c39fedf7356d12c267567d06d53d669c55d6211bfcf8a dont-run-gyp-files-for-bundled-deps.patch
+97b4e5aabcb8c6ad93c3194826325f00d56942fbfa3934565baa51a1a047288a06066c838f34233c38a351e8d8c287601ae08b2b6b6e8dbc5aa44cbb088f24eb link-with-libatomic-on-mips32.patch"