Finalize package
This commit is contained in:
@@ -4,5 +4,6 @@ version: 4.18.3
|
|||||||
url: https://docs.xfce.org/xfce/xfce4-power-manager/start
|
url: https://docs.xfce.org/xfce/xfce4-power-manager/start
|
||||||
license: GPL2-or-later
|
license: GPL2-or-later
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["libnotify","upower"]
|
depends: ["hicolor-icon-theme","libnotify","libxfce4ui","upower"]
|
||||||
|
make_depends: ["glib","intltool","xfce4-panel"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -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 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://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##*/}"
|
FILENAME="${DOWNLOAD##*/}"
|
||||||
|
|
||||||
# The prepare function is executed in the root of the temp directory
|
# 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
|
# 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() {
|
||||||
./configure --prefix=/usr
|
./configure --prefix=/usr --sysconfdir=/etc
|
||||||
make
|
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
|
# 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
|
make DESTDIR="$BPM_OUTPUT" install
|
||||||
|
|
||||||
|
# Install package license
|
||||||
|
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/xfce4-power-manager/COPYING
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user