57 lines
1.7 KiB
Bash
57 lines
1.7 KiB
Bash
# Template file for 'upower'
|
|
pkgname=upower
|
|
version=1.90.4
|
|
revision=1
|
|
build_helper="gir"
|
|
build_style=meson
|
|
configure_args="-Dos_backend=linux -Dsystemdsystemunitdir=no
|
|
$(vopt_feature gir introspection) $(vopt_bool gtk_doc gtk-doc)"
|
|
conf_files="/etc/UPower/UPower.conf"
|
|
hostmakedepends="gettext glib-devel gobject-introspection
|
|
$(vopt_if gtk_doc gtk-doc) docbook-xsl libxslt pkg-config"
|
|
makedepends="libusb-devel libgudev-devel dbus-glib-devel
|
|
libimobiledevice-devel polkit-devel"
|
|
checkdepends="python3-dbus python3-packaging"
|
|
short_desc="Abstraction for enumerating power devices"
|
|
maintainer="cinerea0 <cinerea0@protonmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://gitlab.freedesktop.org/upower/upower"
|
|
changelog="https://gitlab.freedesktop.org/upower/upower/-/raw/master/NEWS"
|
|
distfiles="https://gitlab.freedesktop.org/upower/upower/-/archive/v${version}/upower-v${version}.tar.bz2"
|
|
checksum=bfd0ff3be2be3176c64b78b24b6c7c0782f97777b4d9cb538509b5444ca135e1
|
|
|
|
provides="upower0-${version}_${revision}"
|
|
replaces="upower0>=0"
|
|
|
|
# Package build options
|
|
build_options="gir gtk_doc"
|
|
build_options_default="gir"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default+=" gtk_doc"
|
|
fi
|
|
|
|
libupower-glib3_package() {
|
|
short_desc+=" - runtime library"
|
|
pkg_install() {
|
|
vmove usr/lib/*.so.*
|
|
}
|
|
}
|
|
upower-devel_package() {
|
|
provides="upower0-devel-${version}_${revision}"
|
|
replaces="upower0-devel>=0"
|
|
depends="dbus-glib-devel libupower-glib3>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
if [ "$build_option_gtk_doc" ]; then
|
|
vmove usr/share/gtk-doc
|
|
fi
|
|
}
|
|
}
|