feat: add nodejs

This commit is contained in:
2025-12-21 18:21:19 +01:00
parent 51f5415450
commit 0b92bd1482
2 changed files with 5 additions and 0 deletions

View File

@@ -136,6 +136,7 @@ gtk-doc.recipe.py
gtkmm4.recipe.py
gzip.recipe.py
harfbuzz.recipe.py
heroic-games-launcher.recipe.py
hicolor-icon-theme.recipe.py
highway.recipe.py
hwdata.recipe.py
@@ -317,6 +318,7 @@ pkgconf.recipe.py
plasma-wayland-protocols.recipe.py
plymouth.recipe.py
pm-utils.recipe.py
pnpm.recipe.py
polkit-gnome.recipe.py
polkit-qt.recipe.py
polkit.recipe.py

View File

@@ -17,6 +17,9 @@ build = [
f"cd {builddir} && make -j$(nproc)",
f"cd {builddir} && make DESTDIR={destdir} install && install -d -m 755 {destdir}/usr/share/doc && ln -sf node {destdir}/usr/share/doc/node-{pkgver}",
f"rm -rf {destdir}/usr/bin/{{npm,npx,corepack}} && for i in {{npm,npx}}; do ln -sf /lib/node_modules/npm/bin/$i-cli.js {destdir}/usr/bin/$i; done && "
f"ln -sf /lib/node_modules/corepack/dist/corepack.js {destdir}/usr/bin/corepack", # fix symlinks
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
f"install -v -m644 {builddir}/LICENSE {destdir}/usr/share/licenses/{pkgname}/LICENSE",