Update package version to 7.7.2 and rename package from semver to node-semver

This commit is contained in:
2025-09-20 15:21:37 +03:00
parent 76a43333f3
commit 850ba191a0
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -2,7 +2,7 @@
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
DOWNLOAD="https://registry.npmjs.org/semver/-/semver-${BPM_PKG_VERSION}.tgz"
DOWNLOAD="https://github.com/npm/node-semver/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz"
FILENAME="${DOWNLOAD##*/}"
# The prepare function is executed in the root of the temp directory
@@ -16,6 +16,7 @@ prepare() {
package() {
npm install -g --prefix "$BPM_OUTPUT"/usr "$BPM_WORKDIR"/"$FILENAME"
# Install package license
install -d "$BPM_OUTPUT"/usr/share/licenses/semver
ln -s ../../../lib/node_modules/semver/LICENSE "$BPM_OUTPUT"/usr/share/licenses/semver/LICENSE
}