57 lines
1.7 KiB
Bash
57 lines
1.7 KiB
Bash
# Template file for 'upower'
|
|
pkgname=upower
|
|
version=0.99.17
|
|
revision=1
|
|
build_helper="gir"
|
|
build_style=meson
|
|
configure_args="-Dos_backend=linux -Dsystemdsystemunitdir=no
|
|
-Dintrospection=$(vopt_if gir enabled disabled) $(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 which"
|
|
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=de7177deb2ee23d9c505046c74a856564acab8fd1d39aa1541d123af5a99ca8d
|
|
|
|
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
|
|
}
|
|
}
|