Finalize package

This commit is contained in:
2025-07-14 18:49:17 +03:00
parent adb9d784e8
commit f778244364
2 changed files with 7 additions and 9 deletions
+5 -8
View File
@@ -2,7 +2,7 @@
# 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://wwww.my-url.com/file.tar.gz"
DOWNLOAD="https://archive.xfce.org/src/xfce/xfce4-power-manager/${BPM_PKG_VERSION%.*}/xfce4-power-manager-${BPM_PKG_VERSION}.tar.bz2"
FILENAME="${DOWNLOAD##*/}"
# The prepare function is executed in the root of the temp directory
@@ -15,18 +15,15 @@ prepare() {
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
./configure --prefix=/usr
./configure --prefix=/usr --sysconfdir=/etc
make
}
# The check function is executed in the source directory
# This function is used to run tests to verify the package has been compiled correctly
check() {
make check
}
# 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
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/xfce4-power-manager/COPYING
}