summaryrefslogtreecommitdiff
path: root/testing/modemmanager/PKGBUILD
blob: 8ec1d2f81d38548f2c8f23b3404c9d5e7f33f5be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $Id: PKGBUILD 165839 2012-08-31 20:12:30Z ibiru $
# Maintainer: Ionut Biru <ibiru@archlinux.org>
pkgname=modemmanager
_realname=ModemManager
pkgver=0.6.0.0
pkgrel=1
pkgdesc="Mobile broadband modem management service"
arch=('i686' 'x86_64')
url="http://cgit.freedesktop.org/ModemManager/ModemManager/"
license=('GPL2')
depends=('dbus-glib' 'udev' 'ppp')
makedepends=('intltool')
optdepends=('usb_modeswitch: install if your modem shows up as a storage drive')
options=('!libtool')
source=(http://download.gnome.org/sources/$_realname/0.6/$_realname-$pkgver.tar.xz
        modem-manager.service)
sha256sums=('d4468300cf4aa7baf21c8564fa515e578056f34de5a64f452b053331f89e8ae2'
            '118e36f2f956d719cf4036f3fd5f5bf0fde88ca55bdf7ed95051b5b09066fcbe')

build() {
  cd "$_realname-$pkgver"
   ./configure --prefix=/usr \
   	--sysconfdir=/etc \
	--localstatedir=/var \
	--with-udev-base-dir=/usr/lib/udev \
	--disable-static
  make
}

package() {
  cd "$_realname-$pkgver"
  make DESTDIR="$pkgdir" install

  install -Dm644 "$srcdir/modem-manager.service" \
    "$pkgdir/usr/lib/systemd/system/modem-manager.service"
  echo "SystemdService=modem-manager.service" \
    >> "$pkgdir/usr/share/dbus-1/system-services/org.freedesktop.ModemManager.service"
}