blob: c39ff424e84934aae97440002b3cc419027e51a3 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# $Id: PKGBUILD 214366 2014-06-07 21:02:51Z heftig $
# Maintainer: Ionut Biru <ibiru@archlinux.org>
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
pkgbase=modemmanager
pkgname=(modemmanager libmm-glib)
pkgver=1.2.0
pkgrel=4
pkgdesc="Mobile broadband modem management service"
arch=(i686 x86_64)
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')
options=(!emptydirs)
cd ModemManager-$pkgver
make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" -C libmm-glib uninstall
make DESTDIR="$pkgdir" -C vapi uninstall
# Some stuff to move is left over
mv "$pkgdir/usr/include" ..
mv "$pkgdir/usr/lib/pkgconfig" ..
}
package_libmm-glib() {
pkgdesc="ModemManager library"
depends=(glib2)
install -d "$pkgdir/usr/lib"
mv include "$pkgdir/usr"
mv pkgconfig "$pkgdir/usr/lib"
cd ModemManager-$pkgver
make DESTDIR="$pkgdir" -C libmm-glib install
make DESTDIR="$pkgdir" -C vapi install
}
|