void-packages/srcpkgs/ModemManager/template

48 lines
1.4 KiB
Text
Raw Normal View History

2013-07-20 03:41:29 +00:00
# Template file for 'ModemManager'
pkgname=ModemManager
2015-01-15 08:34:14 +00:00
version=1.4.2
2014-10-04 07:32:12 +00:00
revision=1
2015-01-15 08:34:14 +00:00
build_options="gir systemd"
2013-07-20 03:41:29 +00:00
build_style=gnu-configure
2015-01-15 08:34:14 +00:00
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
$(vopt_if gir 'vala-devel gobject-introspection')"
2014-10-04 07:32:12 +00:00
makedepends="glib-devel libgudev-devel polkit-devel libqmi-devel
2015-01-15 08:34:14 +00:00
libmbim-devel>=1.10 ppp libqmi-devel>=1.10.2 $(vopt_if systemd systemd-devel)"
depends="hicolor-icon-theme ppp"
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"
2015-01-15 08:34:14 +00:00
checksum=07d332fbe6f45f788f740810951e04042aaf023bd5ecf8ef0b3a06e37703585d
2013-07-20 03:41:29 +00:00
2015-01-15 08:34:14 +00:00
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
2013-07-20 03:41:29 +00:00
ModemManager-devel_package() {
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"
2015-01-15 08:34:14 +00:00
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
vmove usr/share/vala
fi
2013-07-20 03:41:29 +00:00
}
}
libmm-glib_package() {
short_desc+=" - GLib library"
pkg_install() {
vmove "usr/lib/libmm-glib.so.*"
2015-01-15 08:34:14 +00:00
if [ "$build_option_gir" ]; then
vmove usr/lib/girepository-1.0
fi
2013-07-20 03:41:29 +00:00
}
}