# $Id: PKGBUILD 205463 2014-02-05 16:17:43Z heftig $ # Maintainer: Ionut Biru # Contributor: Jan Alexander Steffens (heftig) pkgbase=modemmanager pkgname=(modemmanager libmm-glib) pkgver=1.2.0 pkgrel=2 pkgdesc="Mobile broadband modem management service" arch=('i686' 'x86_64' 'mips64el') url="http://www.freedesktop.org/wiki/Software/ModemManager/" license=(GPL2 LGPL2.1) depends=(systemd polkit ppp libqmi libmbim) makedepends=(intltool gtk-doc gobject-introspection vala) source=(http://www.freedesktop.org/software/ModemManager/ModemManager-$pkgver.tar.xz) sha256sums=('8bd9d8c3b506f34a9f927e95784026d1fe132c9d60fc426a892b690f7d6408bc') build() { cd ModemManager-$pkgver ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --sbindir=/usr/bin \ --with-udev-base-dir=/usr/lib/udev \ --with-polkit=permissive \ --enable-gtk-doc \ --disable-static make } package_modemmanager() { depends+=(libmm-glib) optdepends=('usb_modeswitch: install if your modem shows up as a storage drive') cd ModemManager-$pkgver make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" -C libmm-glib uninstall make DESTDIR="$pkgdir" -C vapi uninstall } package_libmm-glib() { pkgdesc="ModemManager library" depends=(glib2) cd ModemManager-$pkgver make DESTDIR="$pkgdir" -C libmm-glib install make DESTDIR="$pkgdir" -C vapi install }