diff options
author | Sebastian Krzyszkowiak | 2019-07-27 00:36:27 +0200 |
---|---|---|
committer | Sebastian Krzyszkowiak | 2019-07-27 00:36:27 +0200 |
commit | c2a06d6d10c09d7973a76f9ca7fc6ef0c80b44a4 (patch) | |
tree | dbbc0bc77b0b593126de74f89863c2e0903e1c0e | |
download | aur-c2a06d6d10c09d7973a76f9ca7fc6ef0c80b44a4.tar.gz |
initial import
-rw-r--r-- | .SRCINFO | 43 | ||||
-rw-r--r-- | PKGBUILD | 90 | ||||
-rw-r--r-- | strict-filter.diff | 13 |
3 files changed, 146 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..087b73c0c3f1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,43 @@ +pkgbase = modemmanager-git + pkgdesc = Mobile broadband modem management service + pkgver = 1.10.0+170+gd7696d8e + pkgrel = 1 + url = https://www.freedesktop.org/wiki/Software/ModemManager/ + arch = x86_64 + license = GPL2 + license = LGPL2.1 + makedepends = gtk-doc + makedepends = gobject-introspection + makedepends = vala + makedepends = autoconf-archive + makedepends = git + depends = systemd + depends = libgudev + depends = polkit + depends = ppp + depends = libqmi + depends = libmbim + source = git+https://gitlab.freedesktop.org/mobile-broadband/ModemManager.git + source = strict-filter.diff + sha256sums = SKIP + sha256sums = 0602cc5088b193426c3af3d6ce14a7fd6502b06f77982dc56291d834280f311e + +pkgname = modemmanager-git + depends = systemd + depends = libgudev + depends = polkit + depends = ppp + depends = libqmi + depends = libmbim + depends = libmm-glib + optdepends = usb_modeswitch: install if your modem shows up as a storage drive + provides = modemmanager + conflicts = modemmanager + options = !emptydirs + +pkgname = libmm-glib-git + pkgdesc = ModemManager library + depends = glib2 + provides = libmm-glib + conflicts = libmm-glib + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6dec5dbd9f36 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,90 @@ +# Maintainer: Sebastian Krzyszkowiak <dos@dosowisko.net> +# Contributor: Ionut Biru <ibiru@archlinux.org> +# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> + +pkgbase=modemmanager-git +pkgname=(modemmanager-git libmm-glib-git) +pkgver=1.10.0+170+gd7696d8e +pkgrel=1 +pkgdesc="Mobile broadband modem management service" +arch=(x86_64) +url="https://www.freedesktop.org/wiki/Software/ModemManager/" +license=(GPL2 LGPL2.1) +depends=(systemd libgudev polkit ppp libqmi libmbim) +makedepends=(gtk-doc gobject-introspection vala autoconf-archive git) +source=("git+https://gitlab.freedesktop.org/mobile-broadband/ModemManager.git" + strict-filter.diff) +sha256sums=('SKIP' + '0602cc5088b193426c3af3d6ce14a7fd6502b06f77982dc56291d834280f311e') + +pkgver() { + cd ModemManager + git describe --tags | sed 's/-rc/rc/;s/-/+/g' +} + +prepare() { + cd ModemManager + + # Recommended by upstream + patch -Np1 -i ../strict-filter.diff + + NOCONFIGURE=1 ./autogen.sh +} + +build() { + cd ModemManager + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --sbindir=/usr/bin \ + --with-dbus-sys-dir=/usr/share/dbus-1/system.d \ + --with-udev-base-dir=/usr/lib/udev \ + --with-polkit=permissive \ + --with-systemd-journal \ + --with-systemd-suspend-resume \ + --disable-gtk-doc \ + --disable-static + + # https://bugzilla.gnome.org/show_bug.cgi?id=655517 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make +} + +check() { + cd ModemManager + make -k check +} + +package_modemmanager-git() { + depends+=(libmm-glib) + optdepends=('usb_modeswitch: install if your modem shows up as a storage drive') + options=(!emptydirs) + provides=(modemmanager) + conflicts=(modemmanager) + + cd ModemManager + 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-git() { + pkgdesc="ModemManager library" + depends=(glib2) + provides=(libmm-glib) + conflicts=(libmm-glib) + + install -d "$pkgdir/usr/lib" + mv include "$pkgdir/usr" + mv pkgconfig "$pkgdir/usr/lib" + + cd ModemManager + make DESTDIR="$pkgdir" -C libmm-glib install + make DESTDIR="$pkgdir" -C vapi install +} diff --git a/strict-filter.diff b/strict-filter.diff new file mode 100644 index 000000000000..fb144f6c48ab --- /dev/null +++ b/strict-filter.diff @@ -0,0 +1,13 @@ +diff --git i/src/mm-context.c w/src/mm-context.c +index 88d71384..fd17f830 100644 +--- i/src/mm-context.c ++++ w/src/mm-context.c +@@ -38,7 +38,7 @@ + static gboolean help_flag; + static gboolean version_flag; + static gboolean debug; +-static MMFilterRule filter_policy = MM_FILTER_POLICY_DEFAULT; ++static MMFilterRule filter_policy = MM_FILTER_POLICY_STRICT; + static gboolean no_auto_scan = NO_AUTO_SCAN_DEFAULT; + static const gchar *initial_kernel_events; + |