Update package version to 0.7.9
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Github repository
|
||||||
|
REPO="neagix/idesk"
|
||||||
|
|
||||||
|
# Get tag name using Github Rest API
|
||||||
|
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/tags | jq -r '.[0].name')
|
||||||
|
|
||||||
|
|
||||||
|
# Trim 'v' character in TAG_NAME variable
|
||||||
|
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
|
||||||
|
|
||||||
|
echo "$VERSION"
|
||||||
@@ -1,10 +1,8 @@
|
|||||||
name: idesk
|
name: idesk
|
||||||
description: Program that shows users icons on their desktop
|
description: Program that shows users icons on their desktop
|
||||||
version: 0.7.8
|
version: 0.7.9
|
||||||
revision: 2
|
|
||||||
url: https://sourceforge.net/projects/idesk/
|
url: https://sourceforge.net/projects/idesk/
|
||||||
license: GPL
|
license: GPL
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["gcc-libs", "imlib2", "libpng", "libxft", "libxpm"]
|
depends: ["gcc-libs", "imlib2", "libpng", "librsvg", "libxft", "libxpm"]
|
||||||
make_depends: ["git", "pkgconf"]
|
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -2,23 +2,23 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# 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
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
REPO="https://github.com/neagix/idesk"
|
DOWNLOAD="https://github.com/neagix/idesk/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz"
|
||||||
FILENAME="${DOWNLOAD##*/}"
|
FILENAME="${DOWNLOAD##*/}"
|
||||||
|
|
||||||
# The prepare function is executed in the root of the temp directory
|
# 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 downloading files and putting them into the correct location
|
||||||
prepare() {
|
prepare() {
|
||||||
git clone "$REPO" --branch v"$BPM_PKG_VERSION" "$BPM_SOURCE"
|
wget "$DOWNLOAD"
|
||||||
|
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
||||||
|
|
||||||
cd "$BPM_SOURCE"
|
cd "$BPM_SOURCE"
|
||||||
git apply ../imlib2-config.patch
|
autoreconf -fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
autoreconf --install
|
./configure --prefix=/usr --enable-svg
|
||||||
./configure --prefix=/usr
|
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,5 +27,6 @@ build() {
|
|||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
make DESTDIR="$BPM_OUTPUT" install
|
||||||
|
|
||||||
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/idesk/COPYING
|
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/idesk/COPYING
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user