Newer
Older
# Maintainer : Eric Vidal <eric@obarun.org>
# Maintainer : Jean-Michel T.Dydak <jean-michel@obarun.org>
#----------------
# Pkgbuild Src : https://git.obarun.org/pkg/obextra/upower
#--------------------------------------------------------------
# DESCRIPTION ]
pkgdesc="Abstraction for enumerating power devices, listening to device events and querying history and statistics"
url='http://upower.freedesktop.org'
target=d4259c009b3ca1169dfd19231a040c233fc3b58d # tags/v1.90.0^0
source=(
"git+https://gitlab.freedesktop.org/upower/upower.git#${track}=${target}"
0001-build-Fix-default-udevrulesdir.patch
0002-build-Fix-version-macros.patch
)
'docbook-xsl'
'gobject-introspection'
'python'
'git'
'gtk-doc'
'meson'
)
checkdepends=(
'python-dbus'
'python-dbusmock'
'python-gobject'
#------------------------
# INSTALL CONFIGURATION ]
depends=(
'libimobiledevice'
'libgudev'
backup=(
'etc/UPower/UPower.conf'
)
#--------------------
# BUILD PREPARATION ]
cd $pkgname
git describe --tags | sed -e 's/^v\|^UPOWER_//;s/_/\./g;s/[^-]*-g/r&/;s/-/+/g'
# Fix use of libimobiledevice
git cherry-pick -n 81a89385a45d3de1028bcd86b3688fb465b4035c
package() {
depends+=(
'libglib-2.0.so'
'libgobject-2.0.so'
'libgio-2.0.so'
)
provides+=(
'libupower-glib.so'
)
meson install -C build --destdir "$pkgdir"
}