Rebuild with libimobiledevice
This commit is contained in:
@@ -1,9 +1,30 @@
|
|||||||
name: upower
|
name: upower
|
||||||
description: Abstraction for enumerating power devices, listening to device events and querying history and statistics
|
description: Abstraction for enumerating power devices, listening to device events and querying history and statistics
|
||||||
version: 1.90.10
|
version: 1.90.10
|
||||||
|
revision: 2
|
||||||
url: https://upower.freedesktop.org/
|
url: https://upower.freedesktop.org/
|
||||||
license: GPL2-or-later
|
license: GPL2-or-later
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["gcc-libs", "glib", "glibc", "libgudev", "polkit"]
|
|
||||||
make_depends: ["docbook-xsl-nons", "gobject-introspection", "meson"]
|
|
||||||
type: source
|
type: source
|
||||||
|
depends:
|
||||||
|
- gcc-libs
|
||||||
|
- glib
|
||||||
|
- glibc
|
||||||
|
- libgudev
|
||||||
|
- libimobiledevice
|
||||||
|
- libplist
|
||||||
|
- polkit
|
||||||
|
optional_depends:
|
||||||
|
- libusbmuxd
|
||||||
|
make_depends:
|
||||||
|
- docbook-xsl-nons
|
||||||
|
- gobject-introspection
|
||||||
|
- meson
|
||||||
|
- python3
|
||||||
|
- udev
|
||||||
|
- usbmuxd
|
||||||
|
downloads:
|
||||||
|
- url: https://gitlab.freedesktop.org/upower/upower/-/archive/v${BPM_PKG_VERSION}/upower-v${BPM_PKG_VERSION}.tar.gz
|
||||||
|
extract_to: ${BPM_SOURCE}
|
||||||
|
extract_strip_components: 1
|
||||||
|
checksum: 7fcd51bece2526dbee5170feb3ffd1adab5b0cd023575f1fd119d969b73f4b90
|
||||||
|
|||||||
@@ -2,37 +2,22 @@
|
|||||||
# 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://gitlab.freedesktop.org/upower/upower/-/archive/v${BPM_PKG_VERSION}/upower-v${BPM_PKG_VERSION}.tar.bz2"
|
|
||||||
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
|
# 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() {
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
|
|
||||||
meson setup --prefix=/usr \
|
meson setup --prefix=/usr \
|
||||||
--buildtype=release \
|
--buildtype=release \
|
||||||
-D gtk-doc=false \
|
-D gtk-doc=false \
|
||||||
-D man=true \
|
-D man=true \
|
||||||
-D systemdsystemunitdir=no \
|
-D systemdsystemunitdir=no \
|
||||||
-D udevrulesdir=/usr/lib/udev/rules.d ..
|
-D udevrulesdir=/usr/lib/udev/rules.d build
|
||||||
meson compile
|
meson compile -C build
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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() {
|
||||||
cd build
|
meson install -C build --destdir="$BPM_OUTPUT"
|
||||||
|
|
||||||
meson install --destdir="$BPM_OUTPUT"
|
|
||||||
|
|
||||||
# Install esvm service
|
# Install esvm service
|
||||||
install -Dm644 "$BPM_WORKDIR"/upowerd.esv "$BPM_OUTPUT"/etc/esvm/services/upowerd.esv
|
install -Dm644 "$BPM_WORKDIR"/upowerd.esv "$BPM_OUTPUT"/etc/esvm/services/upowerd.esv
|
||||||
|
|||||||
Reference in New Issue
Block a user