f3309bf430
This allows ModemManager to work with the modem on Qualcomm based boards.
55 lines
1.6 KiB
Bash
55 lines
1.6 KiB
Bash
# Template file for 'ModemManager'
|
|
pkgname=ModemManager
|
|
version=1.16.8
|
|
revision=2
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="--disable-static --with-polkit=permissive
|
|
--with-udev-base-dir=/usr/lib/udev --enable-plugin-qcom-soc
|
|
$(vopt_enable gir introspection) $(vopt_enable gir vala)"
|
|
hostmakedepends="pkg-config autoconf $(vopt_if gir vala-devel)
|
|
glib-devel libxslt-devel"
|
|
makedepends="libglib-devel libgudev-devel polkit-devel libqmi-devel
|
|
libmbim-devel libxslt-devel ppp $(vopt_if gir vala-devel)
|
|
python3-gobject-devel python3-dbus-devel"
|
|
depends="hicolor-icon-theme ppp"
|
|
checkdepends="dbus"
|
|
short_desc="Mobile broadband modem management service"
|
|
maintainer="Frank Steinborn <steinex@nognu.de>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.freedesktop.org/wiki/Software/ModemManager/"
|
|
distfiles="${FREEDESKTOP_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
|
|
checksum=21fdfaf94171261ad9d99771894f5ade4bc39ef3d1ff1d421054d14713e97880
|
|
|
|
build_options="gir"
|
|
build_options_default="gir"
|
|
|
|
pre_configure() {
|
|
# Werror ___Guarantees___ failure to build for any non-trivial project
|
|
# in any machine that doesn't run the same software as upstream
|
|
vsed -i configure -e"s; -Werror;;g"
|
|
}
|
|
|
|
ModemManager-devel_package() {
|
|
depends="libmm-glib>=${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
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|
|
|
|
libmm-glib_package() {
|
|
short_desc+=" - GLib library"
|
|
pkg_install() {
|
|
vmove "usr/lib/libmm-glib.so.*"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/lib/girepository-1.0
|
|
fi
|
|
}
|
|
}
|