Update package version to 23.7
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Gitlab repository
|
||||
REPO="psmisc/psmisc"
|
||||
|
||||
# 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,8 @@
|
||||
name: psmisc
|
||||
description: Miscellaneous procfs tools
|
||||
version: 23.6
|
||||
revision: 2
|
||||
version: 23.7
|
||||
url: https://gitlab.com/psmisc/psmisc
|
||||
license: GPL
|
||||
license: GPL2-or-later
|
||||
architecture: any
|
||||
depends: ["glibc","ncurses"]
|
||||
make_depends: ["bash","binutils","coreutils","gcc","gettext","glibc","grep","make","ncurses","sed"]
|
||||
depends: ["ncurses"]
|
||||
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/psmisc/files/psmisc/psmisc-${BPM_PKG_VERSION}.tar.xz"
|
||||
DOWNLOAD="https://gitlab.com/psmisc/psmisc/-/archive/v${BPM_PKG_VERSION}/psmisc-v${BPM_PKG_VERSION}.tar.gz"
|
||||
FILENAME="${DOWNLOAD##*/}"
|
||||
|
||||
# The prepare function is executed in the root of the temp directory
|
||||
@@ -15,6 +15,8 @@ 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
|
||||
make
|
||||
}
|
||||
@@ -29,4 +31,7 @@ check() {
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
make DESTDIR="$BPM_OUTPUT" install
|
||||
|
||||
# Install package license
|
||||
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/psmisc/COPYING
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user