From 0b92bd1482f97ea9cab0955fb2723cd84aa60b80 Mon Sep 17 00:00:00 2001 From: gabry Date: Sun, 21 Dec 2025 18:21:19 +0100 Subject: [PATCH] feat: add nodejs --- index.txt | 2 ++ nodejs.recipe.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/index.txt b/index.txt index bbc9e56..8ebaaa1 100644 --- a/index.txt +++ b/index.txt @@ -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 diff --git a/nodejs.recipe.py b/nodejs.recipe.py index 7a888c0..2e3968c 100644 --- a/nodejs.recipe.py +++ b/nodejs.recipe.py @@ -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",