2013-07-20 05:41:29 +02:00
|
|
|
# Template file for 'ModemManager'
|
|
|
|
pkgname=ModemManager
|
2015-04-28 09:40:01 +02:00
|
|
|
version=1.4.8
|
2015-05-10 11:38:14 +02:00
|
|
|
revision=2
|
2015-01-15 09:34:14 +01:00
|
|
|
build_options="gir systemd"
|
2013-07-20 05:41:29 +02:00
|
|
|
build_style=gnu-configure
|
2015-01-15 09:34:14 +01:00
|
|
|
configure_args="--disable-static --sbindir=/usr/bin
|
|
|
|
--with-udev-base-dir=/usr/lib/udev --with-polkit=permissive
|
|
|
|
$(vopt_enable gir introspection)"
|
2015-04-28 09:40:01 +02:00
|
|
|
hostmakedepends="pkg-config intltool glib-devel autoconf
|
2015-01-15 09:34:14 +01:00
|
|
|
$(vopt_if gir 'vala-devel gobject-introspection')"
|
2014-10-04 09:32:12 +02:00
|
|
|
makedepends="glib-devel libgudev-devel polkit-devel libqmi-devel
|
2015-03-27 10:50:40 +01:00
|
|
|
libmbim-devel ppp libqmi-devel $(vopt_if systemd systemd-devel)"
|
2014-01-01 16:10:11 +01:00
|
|
|
depends="hicolor-icon-theme ppp"
|
2013-07-20 05:41:29 +02:00
|
|
|
short_desc="Mobile broadband modem management service"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2013-07-20 05:41:29 +02:00
|
|
|
homepage="http://www.freedesktop.org/wiki/Software/ModemManager/"
|
|
|
|
license="GPL-2"
|
2015-04-28 09:40:01 +02:00
|
|
|
distfiles="$FREEDESKTOP_SITE/$pkgname/$pkgname-$version.tar.xz"
|
|
|
|
checksum=d951eaffbe513bcde54f90602c6c423a49593f656d6485ba95f6fcb4bc1e8003
|
2013-07-20 05:41:29 +02:00
|
|
|
|
2015-01-15 09:34:14 +01:00
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default="gir"
|
2014-08-21 10:55:55 +02:00
|
|
|
fi
|
|
|
|
|
2013-07-20 05:41:29 +02:00
|
|
|
ModemManager-devel_package() {
|
2014-03-29 12:19:17 +01:00
|
|
|
depends="libmm-glib>=${version}_${revision}"
|
2013-07-20 05:41:29 +02:00
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.so"
|
2015-01-15 09:34:14 +01:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
vmove usr/share/vala
|
|
|
|
fi
|
2013-07-20 05:41:29 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
libmm-glib_package() {
|
|
|
|
short_desc+=" - GLib library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libmm-glib.so.*"
|
2015-01-15 09:34:14 +01:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/lib/girepository-1.0
|
|
|
|
fi
|
2013-07-20 05:41:29 +02:00
|
|
|
}
|
|
|
|
}
|