Update package version to 0.4.0
This commit is contained in:
@@ -1,9 +1,21 @@
|
||||
name: xss-lock
|
||||
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
|
||||
license: MIT
|
||||
architecture: any
|
||||
depends: ["glib","glibc","libxcb","xcb-util"]
|
||||
make_depends: ["cmake"]
|
||||
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
|
||||
|
||||
@@ -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 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
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
|
||||
make
|
||||
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user