Update package version to 0.4.0

This commit is contained in:
2025-10-03 14:52:32 +03:00
parent a4d81280f2
commit 009ceec413
2 changed files with 20 additions and 16 deletions
+15 -3
View File
@@ -1,9 +1,21 @@
name: xss-lock name: xss-lock
description: Use external locker as X screen saver description: Use external locker as X screen saver
version: 0.3.0 version: 0.4.0
revision: 1
url: https://github.com/wavexx/xss-lock url: https://github.com/wavexx/xss-lock
license: MIT license: MIT
architecture: any architecture: any
depends: ["glib","glibc","libxcb","xcb-util"]
make_depends: ["cmake"]
type: source type: source
depends:
- glib
- glibc
- libxcb
- xcb-util
make_depends:
- cmake
- python-docutils
downloads:
- url: https://github.com/wavexx/xss-lock/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz
extract_to_bpm_source: true
extract_strip_components: 1
checksum: 7d990fcd574aabdaf3c8fb20dbb38317aa31a00dce399e9902361bf38f7d9a82
+5 -13
View File
@@ -2,26 +2,18 @@
# 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
DOWNLOAD="https://github.com/wavexx/xss-lock/archive/refs/tags/v${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
prepare() {
wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
}
# 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() {
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
make cmake --build build
} }
# 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() {
make DESTDIR="$BPM_OUTPUT" install DESTDIR="$BPM_OUTPUT" cmake --install build
# Install package license
install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/xss-lock/LICENSE install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/xss-lock/LICENSE
} }