void-packages/srcpkgs/ModemManager/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

47 lines
1.4 KiB
Bash

# Template file for 'ModemManager'
pkgname=ModemManager
version=1.4.6
revision=1
build_options="gir systemd"
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
$(vopt_if gir 'vala-devel gobject-introspection')"
makedepends="glib-devel libgudev-devel polkit-devel libqmi-devel
libmbim-devel ppp libqmi-devel $(vopt_if systemd systemd-devel)"
depends="hicolor-icon-theme ppp"
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"
checksum=0cedabf46310f8c56630b116944f54ee64369c76c2f35f5f460ca19a8bb5a5cd
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
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
}
}