From 850ba191a03adde521455d452bdc795bc4d5c430 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 20 Sep 2025 15:21:37 +0300 Subject: [PATCH] Update package version to 7.7.2 and rename package from semver to node-semver --- pkg.info | 4 ++-- source.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg.info b/pkg.info index 98de3ed..f5bebb9 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ -name: semver +name: node-semver description: The semver parser for node -version: 7.6.3 +version: 7.7.2 url: https://github.com/npm/node-semver license: ISC architecture: any diff --git a/source.sh b/source.sh index cf8c602..e5e5165 100644 --- a/source.sh +++ b/source.sh @@ -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 }