app=nodejs
version=16.4.2
build=1sml
homepage="https://nodejs.org/en/"
desc="Asynchronous 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
"
