Update package version to 4.0.5
This commit is contained in:
@@ -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"
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user