This repository has been archived by the owner on Sep 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.yml
52 lines (52 loc) · 1.8 KB
/
package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name : nodejs
version : 18.17.1
release : 111
source :
- https://github.com/nodejs/node/archive/refs/tags/v18.17.1.tar.gz : 1cc1670bc183eaf9e0afe0258391695d1d6ae1be02ba4c26e0218cf5f19b96f7
license : MIT
component : programming
summary : Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications.
description: |
Javascript platform to make fast, scalable network application. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
builddeps :
- pkgconfig(icu-i18n)
- pkgconfig(libbrotlicommon)
- pkgconfig(libcares)
- pkgconfig(libuv)
- pkgconfig(libnghttp2)
- pkgconfig(openssl)
setup : |
%patch -p1 < $pkgfiles/0001-Disable-running-gyp-on-shared-deps.patch
./configure \
--prefix=%PREFIX% \
--shared-brotli \
--shared-cares \
--shared-libuv \
--shared-nghttp2 \
--shared-openssl \
--shared-zlib \
--with-intl=system-icu
build : |
%make
install : |
%make_install
find $installdir/usr/lib/node_modules/npm/node_modules \( \
-name '*.md' -o \
-name 'AUTHOR*' -o \
-name 'LICENSE*' -o \
-name 'PULL*' -o \
-name Makefile -o \
-name appveyor.yml -o \
-name doc -o \
-name docs -o \
-name examples -o \
-name 'license*' -o \
-name '*.bak' -o \
-name '*.d.ts' -o \
-name '*.markdown' -o \
-name '.*.yml' -o \
-name .editorconfig -o \
-name .github -o \
-name .nycrc \
\) -exec rm -rf {} +
rm -rf $installdir/usr/lib/node_modules/npm/{changelogs,docs}