makedeb
Renamed nodejs 20 that doesn't conflict with other versions and unrenamed in libexec/node20 for adding to PATH
Click here to go back to the commit logs for nodejs20-renamed-bin.
Hash: a88d9f5d55948d338a5c8d2fb096a6d0e9a0dafa
Message: 20.18.1
diff --git a/.SRCINFO b/.SRCINFO
index cff37c2..98ac514 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,7 +3,7 @@ pkgname = nodejs20-renamed-bin
pkgbase = nodejs20-renamed-bin
pkgdesc = Renamed nodejs 20 that doesn't conflict with other versions and unrenamed in libexec/node20 for adding to PATH
pkgrel = 0
-pkgver = 20.18.0
+pkgver = 20.18.1
url = https://nodejs.org/
arch = amd64
arch = arm64
@@ -11,6 +11,14 @@ arch = armhf
arch = ppc64el
arch = s390x
license = MIT
-provides = nodejs=20.18.0
-source = https://nodejs.org/download/release/v20.18.0/node-v20.18.0-linux-x64.tar.xz
-sha256sums = 4543670b589593f8fa5f106111fd5139081da42bb165a9239f05195e405f240a
+provides = nodejs=20.18.1
+source_amd64 = https://nodejs.org/download/release/v20.18.1/node-v20.18.1-linux-x64.tar.xz
+source_arm64 = https://nodejs.org/download/release/v20.18.1/node-v20.18.1-linux-arm64.tar.xz
+source_armhf = https://nodejs.org/download/release/v20.18.1/node-v20.18.1-linux-armv7l.tar.xz
+source_ppc64el = https://nodejs.org/download/release/v20.18.1/node-v20.18.1-linux-ppc64le.tar.xz
+source_s390x = https://nodejs.org/download/release/v20.18.1/node-v20.18.1-linux-s390x.tar.xz
+sha256sums_amd64 = c6fa75c841cbffac851678a472f2a5bd612fff8308ef39236190e1f8dbb0e567
+sha256sums_arm64 = 44d1ffc5905c005ace4515ca6f8c090c4c7cfce3a9a67df0dba35c727590b8f6
+sha256sums_armhf = b5a02f354f67d8f4bda8c563954f4805eccb4039f66a5dcdf755168aaac4e16c
+sha256sums_ppc64el = ad01ea5905e8fb587f306d6cf44cce62a334aaa5e689f1f086ae4d03c4eaf2f2
+sha256sums_s390x = 1df248c207d8557ec1c554242758b5852bad5e0da49108d2dd94abcb9e9eae52
diff --git a/PKGBUILD b/PKGBUILD
index 817ae71..da8d00e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,10 +4,10 @@ _pkgvermain="20"
_pkgname="nodejs${_pkgvermain}"
_pkgnameshort="node${_pkgvermain}"
pkgname="${_pkgname}-renamed-bin"
-pkgver=20.18.0
+pkgver="20.18.1"
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,10 +33,19 @@ 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")
-#wget -o /dev/null -O- https://nodejs.org/download/release/v20.18.0/SHASUMS256.txt | grep linux-x64.tar.xz | cut -d ' ' -f 1
-sha256sums=('4543670b589593f8fa5f106111fd5139081da42bb165a9239f05195e405f240a')
+# uncomment to disable strip
+#extensions=()
+sha256sums_amd64=('c6fa75c841cbffac851678a472f2a5bd612fff8308ef39236190e1f8dbb0e567')
+sha256sums_arm64=('44d1ffc5905c005ace4515ca6f8c090c4c7cfce3a9a67df0dba35c727590b8f6')
+sha256sums_armhf=('b5a02f354f67d8f4bda8c563954f4805eccb4039f66a5dcdf755168aaac4e16c')
+sha256sums_ppc64el=('ad01ea5905e8fb587f306d6cf44cce62a334aaa5e689f1f086ae4d03c4eaf2f2')
+sha256sums_s390x=('1df248c207d8557ec1c554242758b5852bad5e0da49108d2dd94abcb9e9eae52')
prepare() {
cd "${srcdir}/${_srcname}"
diff --git a/update b/update
new file mode 100755
index 0000000..8011fb5
--- /dev/null
+++ b/update
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+readonly MAJOR_VERSION="20"
+
+hashversionarch="$(wget -o /dev/null -O- https://nodejs.org/download/release/latest-v${MAJOR_VERSION}.x/SHASUMS256.txt | grep linux.*tar.xz$)"
+echo "$hashversionarch"
+
+version="$(echo "$hashversionarch" | head -n 1 | cut -d '-' -f 2 | sed 's/v//')"
+echo "$version"
+
+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_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