makedeb


nodejs22-renamed-bin 22.12.0-0


Renamed nodejs 22 that doesn't conflict with other versions and unrenamed in libexec/node22 for adding to PATH

Click here to go back to the commit logs for nodejs22-renamed-bin.

Commit:


Hash: ff14e6de768d5ec03fb2c7137a517f38d5f69373

Message: 22.12.0

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 43ee081..a4a1af7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,7 +3,7 @@ pkgname = nodejs22-renamed-bin
 pkgbase = nodejs22-renamed-bin
 pkgdesc = Renamed nodejs 22 that doesn't conflict with other versions and unrenamed in libexec/node22 for adding to PATH
 pkgrel = 0
-pkgver = 22.11.0
+pkgver = 22.12.0
 url = https://nodejs.org/
 arch = amd64
 arch = arm64
@@ -11,6 +11,14 @@ arch = armhf
 arch = ppc64el
 arch = s390x
 license = MIT
-provides = nodejs=22.11.0
-source = https://nodejs.org/download/release/v22.11.0/node-v22.11.0-linux-x64.tar.xz
-sha256sums = 83bf07dd343002a26211cf1fcd46a9d9534219aad42ee02847816940bf610a72
+provides = nodejs=22.12.0
+source_amd64 = https://nodejs.org/download/release/v22.12.0/node-v22.12.0-linux-x64.tar.xz
+source_arm64 = https://nodejs.org/download/release/v22.12.0/node-v22.12.0-linux-arm64.tar.xz
+source_armhf = https://nodejs.org/download/release/v22.12.0/node-v22.12.0-linux-armv7l.tar.xz
+source_ppc64el = https://nodejs.org/download/release/v22.12.0/node-v22.12.0-linux-ppc64le.tar.xz
+source_s390x = https://nodejs.org/download/release/v22.12.0/node-v22.12.0-linux-s390x.tar.xz
+sha256sums_amd64 = 22982235e1b71fa8850f82edd09cdae7e3f32df1764a9ec298c72d25ef2c164f
+sha256sums_arm64 = 8cfd5a8b9afae5a2e0bd86b0148ca31d2589c0ea669c2d0b11c132e35d90ed68
+sha256sums_armhf = afedb2695faacb22805adde9534f2a360f2b39cab622ebdfe5e7383a2b58ebb9
+sha256sums_ppc64el = 199a606ba1ee86cce6d6b369c71f9d00873d2836a6662592afc3b6a5923e2004
+sha256sums_s390x = 9b517f8006eb4b451d40c461cbe64f93c6455566dbe2613387ab02412bc06d35
diff --git a/PKGBUILD b/PKGBUILD
index 32dd28b..a37ef0e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,10 +4,10 @@ _pkgvermain="22"
 _pkgname="nodejs${_pkgvermain}"
 _pkgnameshort="node${_pkgvermain}"
 pkgname="${_pkgname}-renamed-bin"
-pkgver="22.11.0"
+pkgver="22.12.0"
 pkgrel=0
 pkgdesc="Renamed nodejs ${_pkgvermain} that doesn't conflict with other versions and unrenamed in libexec/node${_pkgvermain} for adding to PATH"
-# MULTYARCH NOT TESTED
+# MULTYARCH NOT TESTED, names probably messed up
 arch=('amd64' 'arm64' 'armhf' 'ppc64el' 's390x')
   case "$(arch)" in
   x86_64)
@@ -33,14 +33,23 @@ arch=('amd64' 'arm64' 'armhf' 'ppc64el' 's390x')
 _srcname=node-v${pkgver}-linux-${_archname}
 url="https://nodejs.org/"
 license=('MIT')
-source=("https://nodejs.org/download/release/v${pkgver}/node-v${pkgver}-linux-${_archname}.tar.xz")
+source_amd64=("https://nodejs.org/download/release/v${pkgver}/node-v${pkgver}-linux-x64.tar.xz")
+source_arm64=("https://nodejs.org/download/release/v${pkgver}/node-v${pkgver}-linux-arm64.tar.xz")
+source_armhf=("https://nodejs.org/download/release/v${pkgver}/node-v${pkgver}-linux-armv7l.tar.xz")
+source_ppc64el=("https://nodejs.org/download/release/v${pkgver}/node-v${pkgver}-linux-ppc64le.tar.xz")
+source_s390x=("https://nodejs.org/download/release/v${pkgver}/node-v${pkgver}-linux-s390x.tar.xz")
 provides=("nodejs=$pkgver")
-sha256sums=('83bf07dd343002a26211cf1fcd46a9d9534219aad42ee02847816940bf610a72')
+# uncomment to disable strip
+#extensions=()
+sha256sums_amd64=('22982235e1b71fa8850f82edd09cdae7e3f32df1764a9ec298c72d25ef2c164f')
+sha256sums_arm64=('8cfd5a8b9afae5a2e0bd86b0148ca31d2589c0ea669c2d0b11c132e35d90ed68')
+sha256sums_armhf=('afedb2695faacb22805adde9534f2a360f2b39cab622ebdfe5e7383a2b58ebb9')
+sha256sums_ppc64el=('199a606ba1ee86cce6d6b369c71f9d00873d2836a6662592afc3b6a5923e2004')
+sha256sums_s390x=('9b517f8006eb4b451d40c461cbe64f93c6455566dbe2613387ab02412bc06d35')
 
 prepare() {
   cd "${srcdir}/${_srcname}"
   mv share/man/man1/node.1 share/man/man1/${_pkgnameshort}.1
-  gzip share/man/man1/${_pkgnameshort}.1
 }
 
 package() {
diff --git a/update b/update
index 51583e5..179b718 100755
--- a/update
+++ b/update
@@ -1,36 +1,19 @@
 #!/bin/sh
 
-  case "$(arch)" in
-  x86_64)
-       _archname="x64"
-        ;;
-  aarch64)
-       _archname="arm64"
-        ;;
-  armv7h)
-       _archname="armv7l"
-        ;;
-  ppc64le)
-      _archname="ppc64le"
-        ;;
-  s390x)
-       _archname="s390x"
-        ;;
-  *)
-     echo "arch name not recognized"
+readonly MAJOR_VERSION="22"
 
-     exit 1
-        ;;
-  esac
+hashversionarch="$(wget  -o /dev/null -O- https://nodejs.org/download/release/latest-v${MAJOR_VERSION}.x/SHASUMS256.txt | grep linux.*tar.xz$)"
+echo "$hashversionarch"
 
-echo "$_archname"
-
-hashversion="$(wget  -o /dev/null -O- https://nodejs.org/download/release/latest-v22.x/SHASUMS256.txt | grep linux-$_archname.tar.xz | sed "s!node-v!!;s!-linux-$_archname.tar.xz!!")"
-
-version="$(echo $hashversion | cut -d ' ' -f 2)"
+version="$(echo "$hashversionarch" | head -n 1 | cut -d '-' -f 2 | sed 's/v//')"
 echo "$version"
 
-hash="$(echo $hashversion | cut -d ' ' -f 1)"
-echo "$hash"
+hashamd64="$(echo "$hashversionarch" | grep x64.tar.xz$ | cut -d ' ' -f 1)"
+hasharm64="$(echo "$hashversionarch" | grep arm64.tar.xz$ | cut -d ' ' -f 1)"
+hasharmhf="$(echo "$hashversionarch" | grep armv7l.tar.xz$ | cut -d ' ' -f 1)"
+hashppc64el="$(echo "$hashversionarch" | grep ppc64le.tar.xz$ | cut -d ' ' -f 1)"
+hashs390x="$(echo "$hashversionarch" | grep s390x.tar.xz$ | cut -d ' ' -f 1)"
+
+echo "$hashamd64"
 
-sed -i "s!pkgver=.*!pkgver=\"$version\"!;s!sha256sums=.*!sha256sums=\(\'$hash\'\)!" PKGBUILD
+sed -i "s!pkgver=.*!pkgver=\"$version\"!;s!sha256sums_amd64=.*!sha256sums_amd64=\(\'$hashamd64\'\)!;s!sha256sums_arm64=.*!sha256sums_arm64=\(\'$hasharm64\'\)!;s!sha256sums_armhf=.*!sha256sums_armhf=\(\'$hasharmhf\'\)!;s!sha256sums_ppc64el=.*!sha256sums_ppc64el=\(\'$hashppc64el\'\)!;s!sha256sums_s390x=.*!sha256sums_s390x=\(\'$hashs390x\'\)!" PKGBUILD