APP=nodejs
VERSION=16.4.2
BUILD=1sml
HOMEPAGE='https://nodejs.org/en/'
DESC="Asynchronous Chrome-based, event-driven Javascript engine designed to build scalable network applications"
REQUIRES="openssl"

build() {
  mkandenterbuilddir
  rm -rf node-$VERSION

  tar xf $SRCDIR/nodejs-$VERSION.tar.?z*
  cd node-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="/" \
    --shared-zlib 

  make
  make install DESTDIR=$PKG 

  install -Dm 644 LICENSE $PKGDOCS/LICENSE

  mkfinalpkg
}

SHA512SUMS="
f20e92d1f163defa9fb4b7d5e3f4a73e1e993e9602d30b43564501a9fc96fadc8647775c42af3eb57e06600d7e5081af0fb525b76786724c71796befc64feb4a  nodejs-16.4.2.tar.gz
"
