diff --git a/pkg.info b/pkg.info index d8283d1..75ae49c 100644 --- a/pkg.info +++ b/pkg.info @@ -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 diff --git a/source.sh b/source.sh index 4d52a08..578fdc6 100644 --- a/source.sh +++ b/source.sh @@ -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 }