From f778244364c6de664dda2214b732d5983eed9860 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Mon, 14 Jul 2025 18:49:17 +0300 Subject: [PATCH] Finalize package --- pkg.info | 3 ++- source.sh | 13 +++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/pkg.info b/pkg.info index 9af9275..8ddb3d7 100644 --- a/pkg.info +++ b/pkg.info @@ -4,5 +4,6 @@ version: 4.18.3 url: https://docs.xfce.org/xfce/xfce4-power-manager/start license: GPL2-or-later architecture: any -depends: ["libnotify","upower"] +depends: ["hicolor-icon-theme","libnotify","libxfce4ui","upower"] +make_depends: ["glib","intltool","xfce4-panel"] type: source diff --git a/source.sh b/source.sh index 9ba34b7..be5b389 100644 --- a/source.sh +++ b/source.sh @@ -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 }