2013-07-20 03:41:29 +00:00
|
|
|
# Template file for 'ModemManager'
|
|
|
|
pkgname=ModemManager
|
2014-10-04 07:32:12 +00:00
|
|
|
version=1.4.0
|
|
|
|
revision=1
|
2013-07-20 03:41:29 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--disable-static --sbindir=/usr/bin --with-udev-base-dir=/usr/lib/udev --with-polkit=permissive"
|
2014-02-19 09:11:15 +00:00
|
|
|
hostmakedepends="pkg-config intltool glib-devel"
|
2014-10-04 07:32:12 +00:00
|
|
|
makedepends="glib-devel libgudev-devel polkit-devel libqmi-devel
|
|
|
|
libmbim-devel>=1.10 ppp libqmi-devel>=1.10.2"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="hicolor-icon-theme ppp"
|
|
|
|
systemd_services="${pkgname}.service on"
|
2013-07-20 03:41:29 +00:00
|
|
|
short_desc="Mobile broadband modem management service"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.freedesktop.org/wiki/Software/ModemManager/"
|
|
|
|
license="GPL-2"
|
|
|
|
distfiles="http://www.freedesktop.org/software/$pkgname/$pkgname-$version.tar.xz"
|
2014-10-04 07:32:12 +00:00
|
|
|
checksum=efe12c30d4660a4694dec2a1ea68ea176f4dc3cb4b9e843929115943dc189ca0
|
2013-07-20 03:41:29 +00:00
|
|
|
|
2014-08-21 08:55:55 +00:00
|
|
|
build_options="systemd"
|
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
configure_args+=" --with-systemdsystemunitdir=/usr/lib/systemd/system"
|
|
|
|
makedepends+=" systemd-devel"
|
|
|
|
fi
|
|
|
|
|
2014-02-19 09:11:15 +00:00
|
|
|
pre_configure() {
|
|
|
|
sed -e 's,-Werror,,g' -i configure
|
|
|
|
}
|
|
|
|
|
2013-07-20 03:41:29 +00:00
|
|
|
ModemManager-devel_package() {
|
2014-03-29 11:19:17 +00:00
|
|
|
depends="libmm-glib>=${version}_${revision}"
|
2013-07-20 03:41:29 +00:00
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libmm-glib_package() {
|
|
|
|
short_desc+=" - GLib library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libmm-glib.so.*"
|
|
|
|
}
|
|
|
|
}
|