53 lines
1.4 KiB
Bash
53 lines
1.4 KiB
Bash
# Template file for 'ModemManager'
|
|
pkgname=ModemManager
|
|
version=1.6.10
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --sbindir=/usr/bin
|
|
--with-udev-base-dir=/usr/lib/udev --with-polkit=permissive
|
|
$(vopt_enable gir introspection)"
|
|
hostmakedepends="pkg-config intltool glib-devel autoconf
|
|
$(vopt_if gir 'vala-devel gobject-introspection')"
|
|
makedepends="glib-devel libgudev-devel polkit-devel libqmi-devel
|
|
libmbim-devel ppp"
|
|
depends="hicolor-icon-theme ppp"
|
|
short_desc="Mobile broadband modem management service"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.freedesktop.org/wiki/Software/ModemManager/"
|
|
license="GPL-2"
|
|
distfiles="$FREEDESKTOP_SITE/$pkgname/$pkgname-$version.tar.xz"
|
|
checksum=bc74326fa69ae8012f806e235f3d296144922669b952d4d4987dd0af645d5f68
|
|
|
|
build_options="gir"
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
fi
|
|
|
|
pre_configure() {
|
|
# Disable -Werror for gcc6 -Wmisleading-indentation
|
|
sed -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
|
|
}
|
|
}
|