From e3b69fb92cc4d64cc11691f752882a7e34edb156 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 11 Oct 2025 18:40:42 +0300 Subject: [PATCH] Rebuild with libimobiledevice --- pkg.info | 25 +++++++++++++++++++++++-- source.sh | 21 +++------------------ 2 files changed, 26 insertions(+), 20 deletions(-) diff --git a/pkg.info b/pkg.info index dbebf7f..fac678c 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,30 @@ name: upower description: Abstraction for enumerating power devices, listening to device events and querying history and statistics version: 1.90.10 +revision: 2 url: https://upower.freedesktop.org/ license: GPL2-or-later architecture: any -depends: ["gcc-libs", "glib", "glibc", "libgudev", "polkit"] -make_depends: ["docbook-xsl-nons", "gobject-introspection", "meson"] 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 diff --git a/source.sh b/source.sh index 3d40a69..0173e96 100644 --- a/source.sh +++ b/source.sh @@ -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 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 # This function is used to compile the source code build() { - mkdir build - cd build - meson setup --prefix=/usr \ --buildtype=release \ -D gtk-doc=false \ -D man=true \ -D systemdsystemunitdir=no \ - -D udevrulesdir=/usr/lib/udev/rules.d .. - meson compile + -D udevrulesdir=/usr/lib/udev/rules.d build + meson compile -C build } # The package function is executed in the source directory # This function is used to move the compiled files into the output directory package() { - cd build - - meson install --destdir="$BPM_OUTPUT" + meson install -C build --destdir="$BPM_OUTPUT" # Install esvm service install -Dm644 "$BPM_WORKDIR"/upowerd.esv "$BPM_OUTPUT"/etc/esvm/services/upowerd.esv