summaryrefslogtreecommitdiff
path: root/nodejs-lts-hydrogen/Pkgfile
blob: f6de05066f79657b2190ef0321ad8990d94e340b (plain)
    1 # Description: Evented I/O for V8 javascript (LTS release: Gallium)
    2 # URL: https://nodejs.org/
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: libnghttp2 libuv openssl11 zlib
    5 # Optional: brotli c-ares icu
    6 
    7 name=nodejs-lts-hydrogen
    8 version=18.13.0
    9 release=1
   10 source=(https://nodejs.org/dist/v$version/node-v$version.tar.xz)
   11 
   12 build() {
   13   cd node-v$version
   14 
   15   export PKG_CONFIG_PATH="/usr/lib/openssl-1.1/pkgconfig:/usr/lib/pkgconfig"
   16 
   17   prt-get isinst brotli && PKGMK_NODEJS+=' --shared-brotli'
   18   prt-get isinst c-ares && PKGMK_NODEJS+=' --shared-cares'
   19   prt-get isinst icu && PKGMK_NODEJS+=' --with-intl=system-icu'
   20 
   21   ./configure ${PKGMK_NODEJS} \
   22     --prefix=/usr/opt/$name \
   23     --ninja \
   24     --shared-libuv \
   25     --shared-nghttp2 \
   26     --shared-openssl \
   27     --shared-zlib \
   28     --without-npm
   29 
   30   make
   31   make DESTDIR=$PKG install
   32 
   33   # clean up
   34   rm -r $PKG/usr/opt/$name/share/doc
   35   find $PKG -type f \( \
   36     -name 'README.md' -o \
   37     -name 'AUTHORS.md' -o \
   38     -name 'INSTALL.md' -o \
   39     -name 'TODO.org' -o \
   40     -name 'ChangeLog' -o \
   41     -name 'NEWS' \) -delete
   42 }

Generated by cgit