From 10d73eb2ea16681aac893df506efb80743bd2913 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 12 Oct 2025 10:51:23 +0300 Subject: [PATCH] Switch to new download format and fix pkgconfig file version --- pkg.info | 16 ++++++++++++++-- source.sh | 11 +++-------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/pkg.info b/pkg.info index 95464e4..85c1e8f 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,21 @@ name: procps-ng description: System monitoring utilities version: 4.0.5 +revision: 2 url: https://gitlab.com/procps-ng/procps/ license: GPL2-or-later,LGPL2.1-or-later architecture: any -depends: ["glibc","elogind","ncurses"] -make_depends: ["gettext"] type: source +depends: + - glibc + - elogind + - ncurses +make_depends: + - gettext + - git +downloads: + - url: https://gitlab.com/procps-ng/procps.git + type: git + clone_to: ${BPM_SOURCE} + git_branch: v${BPM_PKG_VERSION} + checksum: f46b2f7929cdfe2913ed0a7f585b09d6adbf994e diff --git a/source.sh b/source.sh index 1aea44c..a59736e 100644 --- a/source.sh +++ b/source.sh @@ -2,21 +2,16 @@ # 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://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 -# This function is used for downloading files and putting them into the correct location +# This function is used for putting downloaded files to the correct location or applying patches prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" + cd "$BPM_SOURCE" + ./autogen.sh } # 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 \