From 2c70b5d118c20cc45212e3c1318c75682f403558 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Mon, 12 May 2025 12:35:59 +0300 Subject: [PATCH] Update package version to 4.0.5 --- check-version.sh | 18 ++++++++++++++++++ pkg.info | 9 ++++----- source.sh | 11 +++++++++-- 3 files changed, 31 insertions(+), 7 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..25ec7af --- /dev/null +++ b/check-version.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Gitlab repository +REPO="procps-ng/procps" + +# Replace slash with URL encoded representation +REPO=$(echo "$REPO" | sed 's|/|%2F|g') + +# Get tag name using Gitlab Rest API +TAG_NAME=$(curl -s -L https://gitlab.com/api/v4/projects/"$REPO"/repository/tags | jq -r '.[0].name') + +# Get version number from tag name +VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev) + +# Trim 'v' character in VERSION variable +VERSION=$(echo "$VERSION" | tr -d 'v') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index ec40941..95464e4 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,9 @@ name: procps-ng description: System monitoring utilities -version: 4.0.4 -revision: 2 +version: 4.0.5 url: https://gitlab.com/procps-ng/procps/ -license: GPL,LGPL +license: GPL2-or-later,LGPL2.1-or-later architecture: any -depends: ["glibc"] -make_depends: ["bash","binutils","coreutils","gcc","glibc","make","ncurses","pkgconf"] +depends: ["glibc","elogind","ncurses"] +make_depends: ["gettext"] type: source diff --git a/source.sh b/source.sh index 67289a1..1aea44c 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://sourceforge.net/projects/procps-ng/files/Production/procps-ng-${BPM_PKG_VERSION}.tar.xz" +DOWNLOAD="https://gitlab.com/procps-ng/procps/-/archive/v${BPM_PKG_VERSION}/procps-v4${BPM_PKG_VERSION}.tar.gz" FILENAME="${DOWNLOAD##*/}" # The prepare function is executed in the root of the temp directory @@ -15,11 +15,14 @@ prepare() { # The build function is executed in the source directory # This function is used to compile the source code build() { + ./autogen.sh + ./configure --prefix=/usr \ --docdir=/usr/share/doc/procps-ng \ --disable-static \ --disable-kill \ - --without-systemd + --enable-watch8bit \ + --with-elogind make } @@ -33,4 +36,8 @@ check() { # This function is used to move the compiled files into the output directory package() { make DESTDIR="$BPM_OUTPUT" install + + # Install package licenses + install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/procps-ng/COPYING + install -Dm644 "$BPM_SOURCE"/COPYING.LIB "$BPM_OUTPUT"/usr/share/licenses/procps-ng/COPYING.LIB }