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="017ac33d586bc57ace19af120f3ec48eebffddfe" # tags/v0.99.18^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'
cd $pkgname
## meson fixes
git apply -3 ../0001-build-Fix-default-udevrulesdir.patch
git apply -3 ../0002-build-Fix-version-macros.patch
package() {
depends+=(
'libglib-2.0.so'
'libgobject-2.0.so'
'libgio-2.0.so'
)
provides+=(
'libupower-glib.so'
)
meson install -C build --destdir "$pkgdir"
}