Update package version to 6.17.0
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Gitlab repository
|
||||||
|
REPO="frameworks/extra-cmake-modules"
|
||||||
|
|
||||||
|
# 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://invent.kde.org/api/v4/projects/"$REPO"/repository/tags | jq -r '.[].name' | grep -v '-' | head -n1)
|
||||||
|
|
||||||
|
# Trim 'v' character in TAG_NAME variable
|
||||||
|
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
|
||||||
|
|
||||||
|
echo "$VERSION"
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
name: extra-cmake-modules
|
name: extra-cmake-modules
|
||||||
description: Extra modules and scripts for CMake
|
description: Extra modules and scripts for CMake
|
||||||
version: 6.11.0
|
version: 6.17.0
|
||||||
url: https://community.kde.org/Frameworks
|
url: https://community.kde.org/Frameworks
|
||||||
license: BSD-3-Clause
|
license: BSD-3-Clause
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -15,17 +15,15 @@ prepare() {
|
|||||||
# 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() {
|
||||||
mkdir build
|
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr
|
||||||
cd build
|
cmake --build build
|
||||||
|
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
cd build
|
DESTDIR="$BPM_OUTPUT" cmake --install build
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
|
||||||
|
|
||||||
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/COPYING-CMAKE-SCRIPTS "$BPM_OUTPUT"/usr/share/licenses/extra-cmake-modules/COPYING-CMAKE-SCRIPTS
|
install -Dm644 "$BPM_SOURCE"/COPYING-CMAKE-SCRIPTS "$BPM_OUTPUT"/usr/share/licenses/extra-cmake-modules/COPYING-CMAKE-SCRIPTS
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user