makedeb


nodejs 20.15.0-1


Node.js JavaScript runtime

Click here to go back to the commit logs for nodejs.

Commit:


Hash: 8c8afef110a55c9b390b9a60cd75ef771de06c77

Message: Enable corepack extensions during packaging

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 7d1fd17..23aee74 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@ generated-by = makedeb
 pkgname = nodejs
 pkgbase = nodejs
 pkgdesc = Node.js JavaScript runtime
-pkgrel = 1
+pkgrel = 2
 pkgver = 18.8.0
 url = https://nodejs.org
 arch = any
diff --git a/PKGBUILD b/PKGBUILD
index f05eba0..4678f73 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
 _pkgname='node'
 pkgname=nodejs
 pkgver=18.8.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Node.js JavaScript runtime'
 arch=('any')
 depends=(
@@ -43,6 +43,11 @@ package() {
     cd "${_pkgname}-${pkgver}/"
     make DESTDIR="${pkgdir}" install
     "${pkgdir}/usr/bin/${_pkgname}" --completion-bash | install -Dm 644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/${_pkgname}"
+
+    (
+        PATH="${pkgdir}/usr/bin:${PATH}"
+        "${pkgdir}/usr/bin/corepack" enable --install-directory "${pkgdir}/usr/bin"
+    )
 }
 
 # vim: set sw=4 expandtab: